New submission from Ritesh Raj Sarraf :
Whey I do a help (python-module), I get the help text as follows:
Help on module tempfile:
NAME
tempfile - Temporary files.
FILE
/usr/lib/python2.5/tempfile.py
MODULE DOCS
http://www.python.org/doc/2.5.4/lib/module-tempfile.html
Changes by Ritesh Raj Sarraf :
--
type: -> feature request
___
Python tracker
<http://bugs.python.org/issue6824>
___
___
Python-bugs-list mailing list
Un
Ritesh Raj Sarraf added the comment:
Take "help os" or "help os.fork" for example.
WIth the help output that they provide, how am I supposed to know that
os.fork is only supported on Unix.
We can also go with the assumption that the modules shipped are
cross-platform. But
Ritesh Raj Sarraf added the comment:
I never said that I think it is not cross-platform.
My point is, it should be good to list down a module's dependency in the
python help docs.
Like:
tempfile
Supported Platforms: ALL
Exception: On Platform foo, feature tempfile.bar() is not avai
New submission from Ritesh Raj Sarraf :
Shoudl argparse be included in the Python Standard Library.
I know we already have getopt and optparse but optparse doesn't
support many features easily. (like options without hyphen, nargs=*)
Here a little about argparse:
argparse: Python command
Ritesh Raj Sarraf added the comment:
>From the author, Steven Berthard:
Sorry about the delay - conferences and moving means that I haven't
had as much time for argparse as I'd like. Basically, the way things
get into the Python standard library is if a
Ritesh Raj Sarraf added the comment:
Thanks for the link. As a user, I see many of the features that argparse
brings, to be helpful.
Since they are missing in optparse, and since it doesn't look like
argparse will be included, should I open new bugs for those features
against opt
Ritesh Raj Sarraf added the comment:
I'm not sure about the design part, but as a user, I find both to have very
similar interfaces.
argparse is better because it handles nargs=*. This has long been
asked in optparse. Positional arguments is something I wanted recently,
and argparse mak