zenlotus / argparse

Automatically exported from code.google.com/p/argparse
Other
0 stars 0 forks source link

__all__ is not complete #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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'

Original issue reported on code.google.com by a.bad...@gmail.com on 21 Jun 2010 at 6:37

GoogleCodeExporter commented 9 years ago
Moved to http://bugs.python.org/issue9353

Original comment by steven.b...@gmail.com on 23 Jul 2010 at 2:25