-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-136145: Define 'standard library' and 'stdlib' in the glossary #136146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think of the x.y.z standard library as defined by the x.y.z docs, which may have OS availability notes. A particular distribution may include non-standard-library code, such a Tools and Scripts, or, once, Demo, which are not part of the stdlib. I believe non-CPython sometimes omit modules. Besides the variations mentioned, ctypes may not exist for non-C based implementatons, and others things may just not be implemented.
The collection of :term:`packages <package>`, :term:`modules <module>` | ||
and :term:`extension modules <extension module>` distributed as a part | ||
of the official Python interpreter package, or an individual member of | ||
that collection. The exact membership of the collection may vary based |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a noun, 'standard library' refers to the entire collecton. As an adjective, it can be applied to any member. Giving both definitions in one sentence is confusing.
The collection of :term:`packages <package>`, :term:`modules <module>` | |
and :term:`extension modules <extension module>` distributed as a part | |
of the official Python interpreter package, or an individual member of | |
that collection. The exact membership of the collection may vary based | |
The collection of :term:`packages <package>`, :term:`modules <module>` | |
and :term:`extension modules <extension module>` distributed as a part | |
of the official Python interpreter package. As an adjective, "a member of" | |
that collection. The exact membership of the collection may vary based |
When you're done making the requested changes, leave the comment: |
@@ -1290,6 +1297,9 @@ Glossary | |||
issues such as incorrect types. See also :term:`type hints <type hint>` | |||
and the :mod:`typing` module. | |||
|
|||
stdlib | |||
An abbreviation of :term:`standard library`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we hint that this isn't the appropriate term to use in CPython docs?
An abbreviation of :term:`standard library`. | |
An informal abbreviation of :term:`standard library`. |
In the "standard library" entry, maybe also reference the The Python Standard Library page? |
📚 Documentation preview 📚: https://cpython-previews--136146.org.readthedocs.build/