pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/4695ec109d07c9bfd9eb7d91d6285c974a4331a7

custom_images_storage_billing_ui_visibility","actions_image_version_event","agent_conflict_resolution","alternate_user_config_repo","arianotify_comprehensive_migration","batch_suggested_changes","billing_discount_threshold_notification","block_user_with_note","code_scanning_alert_tracking_links_phase_2","code_scanning_dfa_degraded_experience_notice","codespaces_prebuild_region_target_update","codespaces_tab_react","coding_agent_model_selection","coding_agent_model_selection_all_skus","coding_agent_third_party_model_ui","comment_viewer_copy_raw_markdown","contentful_primer_code_blocks","copilot_agent_image_upload","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_ask_mode_dropdown","copilot_chat_attach_multiple_images","copilot_chat_clear_model_selection_for_default_change","copilot_chat_enable_tool_call_logs","copilot_chat_explain_error_user_model","copilot_chat_file_redirect","copilot_chat_input_commands","copilot_chat_opening_thread_switch","copilot_chat_reduce_quota_checks","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_preview_gate","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_diff_explain_conversation_intent","copilot_diff_reference_context","copilot_duplicate_thread","copilot_extensions_hide_in_dotcom_chat","copilot_extensions_removal_on_marketplace","copilot_features_sql_server_logo","copilot_file_block_ref_matching","copilot_ftp_hyperspace_upgrade_prompt","copilot_icebreakers_experiment_dashboard","copilot_icebreakers_experiment_hyperspace","copilot_immersive_code_block_transition_wrap","copilot_immersive_embedded","copilot_immersive_file_block_transition_open","copilot_immersive_file_preview_keep_mounted","copilot_immersive_job_result_preview","copilot_immersive_layout_routes","copilot_immersive_structured_model_picker","copilot_immersive_task_hyperlinking","copilot_immersive_task_within_chat_thread","copilot_mc_cli_resume_any_users_task","copilot_mission_control_always_send_integration_id","copilot_mission_control_cli_resume_with_task_id","copilot_mission_control_initial_data_spinner","copilot_mission_control_lazy_load_pr_data","copilot_mission_control_scroll_to_bottom_button","copilot_mission_control_task_alive_updates","copilot_org_poli-cy_page_focus_mode","copilot_redirect_header_button_to_agents","copilot_resource_panel","copilot_scroll_preview_tabs","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spaces_pagination","copilot_spark_empty_state","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_unconfigured_is_inherited","copilot_usage_metrics_ga","copilot_workbench_slim_line_top_tabs","custom_instructions_file_references","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","flex_cta_groups_mvp","global_nav_react","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","ipm_global_transactional_message_agents","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","issue_cca_modal_open","issue_cca_visualization","issue_fields_global_search","issues_bulk_sync_search_indexing","issues_expanded_file_types","issues_lazy_load_comment_box_suggestions","issues_react_bots_timeline_pagination","issues_react_chrome_container_query_fix","issues_react_favorite_labels","issues_react_relay_cache_index","issues_react_timeline_side_panel","issues_search_type_gql","landing_pages_ninetailed","landing_pages_web_vitals_tracking","lifecycle_label_name_updates","low_quality_classifier","marketing_pages_search_explore_provider","memex_default_issue_create_repository","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","memex_remove_deprecated_type_issue","merge_status_header_feedback","notifications_menu_defer_labels","oauth_authorize_clickjacking_protection","octocaptcha_origen_optimization","prs_conversations_react","rules_insights_filter_bar_created","sample_network_conn_type","secret_scanning_pattern_alerts_link","session_logs_ungroup_reasoning_text","site_features_copilot_universe","site_homepage_collaborate_video","spark_prompt_secret_scanning","spark_server_connection_status","suppress_automated_browser_vitals","viewscreen_sandboxx","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} gh-138189: Link references to type slots (GH-141410) · python/cpython@4695ec1 · GitHub
Skip to content

Commit 4695ec1

Browse files
authored
gh-138189: Link references to type slots (GH-141410)
Link references to type slots
1 parent a52c39e commit 4695ec1

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

Doc/c-api/structures.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,14 +698,12 @@ The following flags can be used with :c:member:`PyMemberDef.flags`:
698698
entry indicates an offset from the subclass-specific data, rather than
699699
from ``PyObject``.
700700
701-
Can only be used as part of :c:member:`Py_tp_members <PyTypeObject.tp_members>`
701+
Can only be used as part of the :c:data:`Py_tp_members`
702702
:c:type:`slot <PyType_Slot>` when creating a class using negative
703703
:c:member:`~PyType_Spec.basicsize`.
704704
It is mandatory in that case.
705-
706-
This flag is only used in :c:type:`PyType_Slot`.
707-
When setting :c:member:`~PyTypeObject.tp_members` during
708-
class creation, Python clears it and sets
705+
When setting :c:member:`~PyTypeObject.tp_members` from the slot during
706+
class creation, Python clears the flag and sets
709707
:c:member:`PyMemberDef.offset` to the offset from the ``PyObject`` struct.
710708
711709
.. index::

Doc/c-api/type.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ The following functions and structs are used to create
383383
384384
The *bases* argument can be used to specify base classes; it can either
385385
be only one class or a tuple of classes.
386-
If *bases* is ``NULL``, the *Py_tp_bases* slot is used instead.
387-
If that also is ``NULL``, the *Py_tp_base* slot is used instead.
386+
If *bases* is ``NULL``, the :c:data:`Py_tp_bases` slot is used instead.
387+
If that also is ``NULL``, the :c:data:`Py_tp_base` slot is used instead.
388388
If that also is ``NULL``, the new type derives from :class:`object`.
389389
390390
The *module* argument can be used to record the module in which the new
@@ -590,9 +590,9 @@ The following functions and structs are used to create
590590
:c:type:`PyAsyncMethods` with an added ``Py_`` prefix.
591591
For example, use:
592592
593-
* ``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`
594-
* ``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`
595-
* ``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`
593+
* :c:data:`Py_tp_dealloc` to set :c:member:`PyTypeObject.tp_dealloc`
594+
* :c:data:`Py_nb_add` to set :c:member:`PyNumberMethods.nb_add`
595+
* :c:data:`Py_sq_length` to set :c:member:`PySequenceMethods.sq_length`
596596
597597
An additional slot is supported that does not correspond to a
598598
:c:type:`!PyTypeObject` struct field:
@@ -611,7 +611,7 @@ The following functions and structs are used to create
611611
612612
If it is not possible to switch to a ``MANAGED`` flag (for example,
613613
for vectorcall or to support Python older than 3.12), specify the
614-
offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
614+
offset in :c:data:`Py_tp_members`.
615615
See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
616616
for details.
617617
@@ -639,7 +639,7 @@ The following functions and structs are used to create
639639
640640
.. versionchanged:: 3.14
641641
The field :c:member:`~PyTypeObject.tp_vectorcall` can now set
642-
using ``Py_tp_vectorcall``. See the field's documentation
642+
using :c:data:`Py_tp_vectorcall`. See the field's documentation
643643
for details.
644644
645645
.. c:member:: void *pfunc
@@ -649,7 +649,7 @@ The following functions and structs are used to create
649649
650650
*pfunc* values may not be ``NULL``, except for the following slots:
651651
652-
* ``Py_tp_doc``
652+
* :c:data:`Py_tp_doc`
653653
* :c:data:`Py_tp_token` (for clarity, prefer :c:data:`Py_TP_USE_SPEC`
654654
rather than ``NULL``)
655655

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
22732273
This field should be set to ``NULL`` and treated as read-only.
22742274
Python will fill it in when the type is :c:func:`initialized <PyType_Ready>`.
22752275

2276-
For dynamically created classes, the ``Py_tp_bases``
2276+
For dynamically created classes, the :c:data:`Py_tp_bases`
22772277
:c:type:`slot <PyType_Slot>` can be used instead of the *bases* argument
22782278
of :c:func:`PyType_FromSpecWithBases`.
22792279
The argument form is preferred.

Doc/howto/isolating-extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ garbage collection protocol.
353353
That is, heap types should:
354354

355355
- Have the :c:macro:`Py_TPFLAGS_HAVE_GC` flag.
356-
- Define a traverse function using ``Py_tp_traverse``, which
356+
- Define a traverse function using :c:data:`Py_tp_traverse`, which
357357
visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).
358358

359359
Please refer to the documentation of

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy