[New-bugs-announce] [issue9353] argparse __all__ is incomplete

Steven Bethard report at bugs.python.org
Fri Jul 23 16:25:11 CEST 2010

New submission from Steven Bethard <steven.bethard at 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__::


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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list