This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: argparse __all__ is incomplete
Type: behavior Stage: needs patch
Components: Library (Lib) Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bethard Nosy List: bethard
Priority: normal Keywords:

Created on 2010-07-23 14:25 by bethard, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg111331 - (view) Author: Steven Bethard (bethard) * (Python committer) Date: 2010-07-23 14:25
[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'
msg120134 - (view) Author: Steven Bethard (bethard) * (Python committer) Date: 2010-11-01 15:26
Fixed in 3.X in r86086 and in 2.7 in r86087.
History
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53599
2010-11-01 15:26:50bethardsetstatus: open -> closed
assignee: bethard
resolution: fixed
messages: + msg120134
2010-07-23 14:25:10bethardcreate