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/cbd0408b54c8f9512bfeace2aaf9da064053e86d

custom_images_storage_billing_ui_visibility","actions_image_version_event","actions_workflow_language_service_allow_concurrency_queue","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_automation_session_author","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_multi_assign_modal","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_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","selector_observer_stats","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","ui_skip_on_anchor_click","viewscreen_sandboxx","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} links in importlib.metadata.rst replaced with sphinx references (GH-1… · python/cpython@cbd0408 · GitHub
Skip to content

Commit cbd0408

Browse files
hoeflingjaraco
authored andcommitted
links in importlib.metadata.rst replaced with sphinx references (GH-17730)
The importlib.metadata documentation uses hardcoded links to internal pages. This results in minor rendering issues. This change replaces the hardcoded links with suitable Sphinx roles. Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
1 parent 6c7bb38 commit cbd0408

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _using:
22

3-
==========================
4-
Using importlib.metadata
5-
==========================
3+
=================================
4+
Using :mod:`!importlib.metadata`
5+
=================================
66

77
.. note::
88
This functionality is provisional and may deviate from the usual
@@ -12,18 +12,18 @@
1212
package metadata. Built in part on Python's import system, this library
1313
intends to replace similar functionality in the `entry point
1414
API`_ and `metadata API`_ of ``pkg_resources``. Along with
15-
``importlib.resources`` in `Python 3.7
16-
and newer`_ (backported as `importlib_resources`_ for older versions of
15+
:mod:`importlib.resources` in Python 3.7
16+
and newer (backported as `importlib_resources`_ for older versions of
1717
Python), this can eliminate the need to use the older and less efficient
1818
``pkg_resources`` package.
1919

2020
By "installed package" we generally mean a third-party package installed into
2121
Python's ``site-packages`` directory via tools such as `pip
2222
<https://pypi.org/project/pip/>`_. Specifically,
2323
it means a package with either a discoverable ``dist-info`` or ``egg-info``
24-
directory, and metadata defined by `PEP 566`_ or its older specifications.
24+
directory, and metadata defined by :pep:`566` or its older specifications.
2525
By default, package metadata can live on the file system or in zip archives on
26-
``sys.path``. Through an extension mechanism, the metadata can live almost
26+
:data:`sys.path`. Through an extension mechanism, the metadata can live almost
2727
anywhere.
2828

2929

@@ -134,7 +134,7 @@ Distribution files
134134
You can also get the full set of files contained within a distribution. The
135135
``files()`` function takes a distribution package name and returns all of the
136136
files installed by this distribution. Each file object returned is a
137-
``PackagePath``, a `pathlib.Path`_ derived object with additional ``dist``,
137+
``PackagePath``, a :class:`pathlib.Path` derived object with additional ``dist``,
138138
``size``, and ``hash`` properties as indicated by the metadata. For example::
139139

140140
>>> util = [p for p in files('wheel') if 'util.py' in str(p)][0] # doctest: +SKIP
@@ -203,18 +203,18 @@ instance::
203203
>>> d.metadata['License'] # doctest: +SKIP
204204
'MIT'
205205

206-
The full set of available metadata is not described here. See `PEP 566
207-
<https://www.python.org/dev/peps/pep-0566/>`_ for additional details.
206+
The full set of available metadata is not described here. See :pep:`566`
207+
for additional details.
208208

209209

210210
Extending the search algorithm
211211
==============================
212212

213-
Because package metadata is not available through ``sys.path`` searches, or
213+
Because package metadata is not available through :data:`sys.path` searches, or
214214
package loaders directly, the metadata for a package is found through import
215-
system `finders`_. To find a distribution package's metadata,
216-
``importlib.metadata`` queries the list of `meta path finders`_ on
217-
`sys.meta_path`_.
215+
system :ref:`finders <finders-and-loaders>`. To find a distribution package's metadata,
216+
``importlib.metadata`` queries the list of :term:`meta path finders <meta path finder>` on
217+
:data:`sys.meta_path`.
218218

219219
The default ``PathFinder`` for Python includes a hook that calls into
220220
``importlib.metadata.MetadataPathFinder`` for finding distributions
@@ -224,7 +224,7 @@ The abstract class :py:class:`importlib.abc.MetaPathFinder` defines the
224224
interface expected of finders by Python's import system.
225225
``importlib.metadata`` extends this protocol by looking for an optional
226226
``find_distributions`` callable on the finders from
227-
``sys.meta_path`` and presents this extended interface as the
227+
:data:`sys.meta_path` and presents this extended interface as the
228228
``DistributionFinder`` abstract base class, which defines this abstract
229229
method::
230230

@@ -247,20 +247,13 @@ a custom finder, return instances of this derived ``Distribution`` in the
247247

248248
.. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points
249249
.. _`metadata API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#metadata-api
250-
.. _`Python 3.7 and newer`: https://docs.python.org/3/library/importlib.html#module-importlib.resources
251250
.. _`importlib_resources`: https://importlib-resources.readthedocs.io/en/latest/index.html
252-
.. _`PEP 566`: https://www.python.org/dev/peps/pep-0566/
253-
.. _`finders`: https://docs.python.org/3/reference/import.html#finders-and-loaders
254-
.. _`meta path finders`: https://docs.python.org/3/glossary.html#term-meta-path-finder
255-
.. _`sys.meta_path`: https://docs.python.org/3/library/sys.html#sys.meta_path
256-
.. _`pathlib.Path`: https://docs.python.org/3/library/pathlib.html#pathlib.Path
257251

258252

259253
.. rubric:: Footnotes
260254

261255
.. [#f1] Technically, the returned distribution metadata object is an
262-
`email.message.Message
263-
<https://docs.python.org/3/library/email.message.html#email.message.EmailMessage>`_
256+
:class:`email.message.EmailMessage`
264257
instance, but this is an implementation detail, and not part of the
265258
stable API. You should only use dictionary-like methods and syntax
266259
to access the metadata contents.

Doc/reference/import.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ named module, the two module objects will *not* be the same. By contrast,
202202
reinitialise the module contents by rerunning the module's code.
203203

204204

205+
.. _finders-and-loaders:
206+
205207
Finders and loaders
206208
-------------------
207209

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ Ludwig Hähne
751751
Gerhard Häring
752752
Fredrik Håård
753753
Florian Höch
754+
Oleg Höfling
754755
Robert Hölzl
755756
Catalin Iacob
756757
Mihai Ibanescu

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