gh-136145: Define 'standard library' and 'stdlib' in the glossary by zware · Pull Request #136146 · python/cpython · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

zware
Copy link
Member

@zware zware commented Jun 30, 2025

@zware zware self-assigned this Jun 30, 2025
@zware zware requested a review from a team June 30, 2025 19:27
@bedevere-app bedevere-app bot added awaiting core review docs Documentation in the Doc dir skip news labels Jun 30, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Jun 30, 2025
@zware zware added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 30, 2025
Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@terryjreedy terryjreedy left a 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.

Doc/glossary.rst Outdated
Comment on lines 1284 to 1287
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
Copy link
Member

@terryjreedy terryjreedy Jun 30, 2025

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.

Suggested change
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

Copy link
Member Author

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.

@bedevere-app
Copy link

bedevere-app bot commented Jun 30, 2025

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@@ -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`.
Copy link
Member

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?

Suggested change
An abbreviation of :term:`standard library`.
An informal abbreviation of :term:`standard library`.

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?

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)

Copy link
Contributor

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we use the term in places like sys.stdlib_module_names, is it "informal" or "unofficial"? There could be a case for the former, but I don't think we can say its "unofficial".

@pochmann3
Copy link
Contributor

In the "standard library" entry, maybe also reference the The Python Standard Library page?

Doc/glossary.rst Outdated
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest adding:

See also :data:`sys.stdlib_module_names`.

@zware zware requested a review from terryjreedy July 3, 2025 18:21
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

9 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.