-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1280,6 +1280,13 @@ Glossary | |||||
and ending with double underscores. Special methods are documented in | ||||||
:ref:`specialnames`. | ||||||
|
||||||
standard library | ||||||
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 | ||||||
on platform, available system packages, or other criteria. | ||||||
vstinner marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
statement | ||||||
A statement is part of a suite (a "block" of code). A statement is either | ||||||
an :term:`expression` or one of several constructs with a keyword, such | ||||||
|
@@ -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 commentThe 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?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Seems reasonable ... could use "unofficial" as an alternative to "informal". (seems like this small change has gotten a little nitpicky, so I won't go on) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both "informal" and "unofficial" works for me. But I agree that it's better with adjective. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that we use the term in places like |
||||||
|
||||||
strong reference | ||||||
In Python's C API, a strong reference is a reference to an object | ||||||
which is owned by the code holding the reference. The strong | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
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 I'd prefer to just leave out that sentence.
My intention was to cover the (admittedly rare) use of "standard library" to refer to an individual library, such as "... the
json
standard library." But, I suppose that's still the adjective case, where "module" is implicit after "library" and really it's just superfluous.