https://github.com/python/cpython/commit/c71e55869e7bc56b2bd04f3055f810026a66c076
commit: c71e55869e7bc56b2bd04f3055f810026a66c076
branch: main
author: Tim Hoffmann <[email protected]>
committer: picnixz <[email protected]>
date: 2025-03-02T10:23:32+01:00
summary:

Add link in the `importlib.metadata.version()` docs (#130739)

Link the specification for the returned data makes it clearer what this is
and what the format of the version string can be.

files:
M Doc/library/importlib.metadata.rst

diff --git a/Doc/library/importlib.metadata.rst 
b/Doc/library/importlib.metadata.rst
index 45bf19ec29286d..67df24797135ca 100644
--- a/Doc/library/importlib.metadata.rst
+++ b/Doc/library/importlib.metadata.rst
@@ -268,8 +268,9 @@ Distribution versions
 
 .. function:: version(distribution_name)
 
-   Return the installed distribution package version for the named
-   distribution package.
+   Return the installed distribution package
+   `version 
<https://packaging.python.org/en/latest/specifications/core-metadata/#version>`__
+   for the named distribution package.
 
    Raises :exc:`PackageNotFoundError` if the named distribution
    package is not installed in the current Python environment.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to