CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
argparse._StoreConstAction Class Reference
Inheritance diagram for argparse._StoreConstAction:
argparse.Action argparse.Action argparse._AttributeHolder argparse._AttributeHolder argparse._AttributeHolder argparse._AttributeHolder argparse._StoreFalseAction argparse._StoreFalseAction argparse._StoreTrueAction argparse._StoreTrueAction

Public Member Functions

def __call__
 
def __call__
 
def __init__
 
def __init__
 
- Public Member Functions inherited from argparse.Action
def __call__
 
def __call__
 
def __init__
 
def __init__
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__
 
def __repr__
 

Additional Inherited Members

- Public Attributes inherited from argparse.Action
 choices
 
 const
 
 default
 
 dest
 
 help
 
 metavar
 
 nargs
 
 option_strings
 
 required
 
 type
 

Detailed Description

Definition at line 838 of file argparse.py.

Constructor & Destructor Documentation

def argparse._StoreConstAction.__init__ (   self,
  option_strings,
  dest,
  const,
  default = None,
  required = False,
  help = None,
  metavar = None 
)

Definition at line 847 of file argparse.py.

Referenced by argparse._StoreConstAction.__call__(), and argparse._StoreConstAction.__init__().

848  metavar=None):
849  super(_StoreConstAction, self).__init__(
850  option_strings=option_strings,
851  dest=dest,
852  nargs=0,
853  const=const,
854  default=default,
855  required=required,
856  help=help)
def argparse._StoreConstAction.__init__ (   self,
  option_strings,
  dest,
  const,
  default = None,
  required = False,
  help = None,
  metavar = None 
)

Definition at line 858 of file argparse.py.

References argparse._StoreConstAction.__init__().

859  metavar=None):
860  super(_StoreConstAction, self).__init__(
861  option_strings=option_strings,
862  dest=dest,
863  nargs=0,
864  const=const,
865  default=default,
866  required=required,
867  help=help)

Member Function Documentation

def argparse._StoreConstAction.__call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)

Definition at line 857 of file argparse.py.

References argparse.Action.const, and argparse.Action.dest.

Referenced by argparse._StoreConstAction.__call__().

858  def __call__(self, parser, namespace, values, option_string=None):
859  setattr(namespace, self.dest, self.const)
860 
def argparse._StoreConstAction.__call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)

Definition at line 868 of file argparse.py.

References argparse._StoreConstAction.__call__(), argparse._StoreConstAction.__init__(), argparse.Action.const, and argparse.Action.dest.

869  def __call__(self, parser, namespace, values, option_string=None):
870  setattr(namespace, self.dest, self.const)
871