Skip to content
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

Document "optional components that are commonly included in Python distributions." #77762

Closed
anntzer mannequin opened this issue May 19, 2018 · 2 comments
Closed

Document "optional components that are commonly included in Python distributions." #77762

anntzer mannequin opened this issue May 19, 2018 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@anntzer
Copy link
Mannequin

anntzer mannequin commented May 19, 2018

BPO 33581
Nosy @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-11-27.18:28:42.046>
created_at = <Date 2018-05-19.22:00:07.250>
labels = ['docs']
title = 'Document "optional components that are commonly included in Python distributions."'
updated_at = <Date 2021-11-27.19:07:44.524>
user = 'https://github.com/anntzer'

bugs.python.org fields:

activity = <Date 2021-11-27.19:07:44.524>
actor = 'Antony.Lee'
assignee = 'docs@python'
closed = True
closed_date = <Date 2021-11-27.18:28:42.046>
closer = 'iritkatriel'
components = ['Documentation']
creation = <Date 2018-05-19.22:00:07.250>
creator = 'Antony.Lee'
dependencies = []
files = []
hgrepos = []
issue_num = 33581
keywords = []
message_count = 2.0
messages = ['317140', '317233']
nosy_count = 2.0
nosy_names = ['r.david.murray', 'docs@python']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue33581'
versions = []

@anntzer
Copy link
Mannequin Author

anntzer mannequin commented May 19, 2018

The stdlib docs intro include the following sentences:

It also describes some of the optional components that are commonly included in Python distributions.

For Unix-like operating systems Python is normally provided as a collection of packages, so it may be necessary to use the packaging tools provided with the operating system to obtain some or all of the optional components.

However, as far as I can tell, there is no easy way to actually know what parts of the stdlib are "optional". The _thread module's doc does state "The module is optional.", and the threading module's doc also implies that it is optional ("The dummy_threading module is provided for situations where threading cannot be used because _thread is missing.") (yes, I know support for threadless builds is going away in 3.7; that's irrelevant here.), but even ensurepip's docs don't state that it may be missing (even though I believe(?) that it is indeed removed (and intended to be so) from some linux distribution's Pythons).

A master list of "optional" features would thus be welcome. Its usefulness is to know what parts of the stdlib we can actually rely on; e.g. in matplotlib/matplotlib#10866 a Matplotlib user noted that bz2 is not present in all Python installs.

@anntzer anntzer mannequin assigned docspython May 19, 2018
@anntzer anntzer mannequin added the docs Documentation in the Doc dir label May 19, 2018
@bitdancer
Copy link
Member

As I understand it, we don't control or know what that list is, it depends on each distribution's policies.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants