Issue 75 in argparse: __all__ is not complete

1 view
Skip to first unread message

argp...@googlecode.com

unread,
Jun 21, 2010, 2:37:37 PM6/21/10
to argpar...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 75 by a.badger: __all__ is not complete
http://code.google.com/p/argparse/issues/detail?id=75

What steps will reproduce the problem?
1. import argparse
2. print dir(argparse)
3. print argparse.__all__

Compare the output for public methods and attributes from #2 that aren't in
#3.

I see the following entries that look like they should be public but aren't
in __all__::

'ArgumentTypeError', 'ONE_OR_MORE', 'OPTIONAL', 'PARSER', 'REMAINDER', 'SUPPRESS', 'ZERO_OR_MORE'

What version of the product are you using? On what operating system?

argparse-1.1 on Fedora Linux

Please provide any additional information below.

I was writing a compat layer to allow unbundling argparse from ipython if
it's already installed in the system when I ran across this. The
particular public attribute that was missing there was 'SUPPRESS'


argp...@googlecode.com

unread,
Jul 23, 2010, 10:32:14 AM7/23/10
to argpar...@googlegroups.com
Updates:
Status: Duplicate

Comment #1 on issue 75 by steven.bethard: __all__ is not complete
http://code.google.com/p/argparse/issues/detail?id=75

Moved to http://bugs.python.org/issue9353

Reply all
Reply to author
Forward
0 new messages