New submission from Steven Bethard <steven.beth...@gmail.com>:

[Moved from 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'

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'

----------
components: Library (Lib)
messages: 111331
nosy: bethard
priority: normal
severity: normal
stage: needs patch
status: open
title: argparse __all__ is incomplete
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9353>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to