CMS 3D CMS Logo

List of all members | Public Member Functions
argparse._StoreConstAction Class Reference
Inheritance diagram for argparse._StoreConstAction:
argparse.Action argparse._AttributeHolder argparse._StoreFalseAction argparse._StoreTrueAction

Public Member Functions

def __call__ (self, parser, namespace, values, option_string=None)
 
def __init__ (self, option_strings, dest, const, default=None, required=False, help=None, metavar=None)
 
- Public Member Functions inherited from argparse.Action
def __call__ (self, parser, namespace, values, option_string=None)
 
def __init__ (self, option_strings, dest, nargs=None, const =None, default=None, type=None, choices=None, required=False, help=None, metavar=None)
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__ (self)
 

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 849 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 858 of file argparse.py.

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

Member Function Documentation

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

Definition at line 868 of file argparse.py.

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

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