-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Move or remove useless/irrelevant command line interface (CLI) on stdlib modules #110076
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
Comments
Previous comments on this situation:
I still don’t see the use of a long list, or long table, of all the runnable modules. They don’t all have the same usefulness and audience, or the same maintained/documented status. |
Please comment gh-109435. This issue is about modules which have a CLI and not documented on purpose. |
Various other comments were linked at #109435 (comment), too, and my most recent at #109436 (comment), but I don't have time to propose any other changes (or removing the list, which remains my preference to be honest), sorry. A |
Summarising the discussion on Discord: [me]
[Victor]
There was also brief discussion on mechanisms to auto-generate such a list, and it was noted that the documentation of many of the CLIs / |
I agree with this issue though that self-tests should be moved to tests, and demos could be moved to recipies or How-Tos. |
I failed to find time to look into this issue. I suppose that the status quo can survive a few more months. I close the issue for now |
In issue gh-109435, I documented stdlib modules provinding an useful or interesting CLI: https://docs.python.org/dev/library/cmdline.html
Some stdlib modules include self-tests in their main() function. I dislike that and I would suggest to remove it and at least move it to their test suite.
Maybe demos should be moved as examples in the documentation instead?
dbm.__init__
: get the DB type... but this CLI is not easy discoverable, it's in the init module!~/.netrc
if available, and then display nothing... not very usefulThe random module includes a benchmark. I don't think that it's useful to regular users, it should be moved somewhere else:
I'm fine with keeping easter eggs:
See also issue gh-93096 "Decide the fate of undocumented script behavior of some modules".
The text was updated successfully, but these errors were encountered: