Back to index

python3.2  3.2.2
Classes | Functions | Variables
argparse Namespace Reference

Classes

class  _AttributeHolder
class  HelpFormatter
class  RawDescriptionHelpFormatter
class  RawTextHelpFormatter
class  ArgumentDefaultsHelpFormatter
class  ArgumentError
class  ArgumentTypeError
class  Action
class  _StoreAction
class  _StoreConstAction
class  _StoreTrueAction
class  _StoreFalseAction
class  _AppendAction
class  _AppendConstAction
class  _CountAction
class  _HelpAction
class  _VersionAction
class  _SubParsersAction
class  FileType
class  Namespace
class  _ActionsContainer
class  _ArgumentGroup
class  _MutuallyExclusiveGroup
class  ArgumentParser

Functions

def _callable
def _ensure_value
def _get_action_name

Variables

string __version__ = '1.1'
list __all__
string SUPPRESS = '==SUPPRESS=='
string OPTIONAL = '?'
string ZERO_OR_MORE = '*'
string ONE_OR_MORE = '+'
string PARSER = 'A...'
string REMAINDER = '...'
string _UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'

Function Documentation

def argparse._callable (   obj) [private]

Definition at line 95 of file argparse.py.

00095 
00096 def _callable(obj):
00097     return hasattr(obj, '__call__') or hasattr(obj, '__bases__')
00098 

Here is the caller graph for this function:

def argparse._ensure_value (   namespace,
  name,
  value 
) [private]

Definition at line 137 of file argparse.py.

00137 
00138 def _ensure_value(namespace, name, value):
00139     if getattr(namespace, name, None) is None:
00140         setattr(namespace, name, value)
00141     return getattr(namespace, name)
00142 
00143 
00144 # ===============
00145 # Formatting Help
00146 # ===============

Here is the call graph for this function:

Here is the caller graph for this function:

def argparse._get_action_name (   argument) [private]

Definition at line 670 of file argparse.py.

00670 
00671 def _get_action_name(argument):
00672     if argument is None:
00673         return None
00674     elif argument.option_strings:
00675         return  '/'.join(argument.option_strings)
00676     elif argument.metavar not in (None, SUPPRESS):
00677         return argument.metavar
00678     elif argument.dest not in (None, SUPPRESS):
00679         return argument.dest
00680     else:
00681         return None
00682 

Here is the caller graph for this function:


Variable Documentation

Initial value:
00001 [
00002     'ArgumentParser',
00003     'ArgumentError',
00004     'ArgumentTypeError',
00005     'FileType',
00006     'HelpFormatter',
00007     'ArgumentDefaultsHelpFormatter',
00008     'RawDescriptionHelpFormatter',
00009     'RawTextHelpFormatter',
00010     'Namespace',
00011     'Action',
00012     'ONE_OR_MORE',
00013     'OPTIONAL',
00014     'PARSER',
00015     'REMAINDER',
00016     'SUPPRESS',
00017     'ZERO_OR_MORE',
00018 ]

Definition at line 65 of file argparse.py.

Definition at line 64 of file argparse.py.

string argparse._UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'

Definition at line 106 of file argparse.py.

Definition at line 103 of file argparse.py.

Definition at line 101 of file argparse.py.

Definition at line 104 of file argparse.py.

Definition at line 105 of file argparse.py.

Definition at line 99 of file argparse.py.

Definition at line 102 of file argparse.py.