CMS 3D CMS Logo

Classes | Functions | Variables
argparse Namespace Reference

Classes

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

Functions

def _ensure_value (namespace, name, value)
 
def _get_action_name (argument)
 
def _sorted (iterable, reverse=False)
 

Variables

 __all__
 
 __version__
 
 _basestring
 
 _set
 
 _sorted
 
 action
 
 category
 
 message
 
 module
 
 ONE_OR_MORE
 
 OPTIONAL
 
 PARSER
 
 SUPPRESS
 
 ZERO_OR_MORE
 

Function Documentation

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

Definition at line 167 of file argparse.py.

Referenced by argparse._AppendAction.__call__(), argparse._AppendConstAction.__call__(), and argparse._CountAction.__call__().

167 def _ensure_value(namespace, name, value):
168  if getattr(namespace, name, None) is None:
169  setattr(namespace, name, value)
170  return getattr(namespace, name)
171 
172 
173 # ===============
174 # Formatting Help
175 # ===============
176 
def _ensure_value(namespace, name, value)
Definition: argparse.py:167
def argparse._get_action_name (   argument)
private

Definition at line 687 of file argparse.py.

References join().

Referenced by argparse.ArgumentParser._parse_known_args().

687 def _get_action_name(argument):
688  if argument is None:
689  return None
690  elif argument.option_strings:
691  return '/'.join(argument.option_strings)
692  elif argument.metavar not in (None, SUPPRESS):
693  return argument.metavar
694  elif argument.dest not in (None, SUPPRESS):
695  return argument.dest
696  else:
697  return None
698 
699 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def _get_action_name(argument)
Definition: argparse.py:687
def argparse._sorted (   iterable,
  reverse = False 
)
private

Definition at line 114 of file argparse.py.

References _sorted, and list().

114  def _sorted(iterable, reverse=False):
115  result = list(iterable)
116  result.sort()
117  if reverse:
118  result.reverse()
119  return result
120 
121 # silence Python 2.6 buggy warnings about Exception.message
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Variable Documentation

argparse.__all__
private

Definition at line 79 of file argparse.py.

argparse.__version__
private

Definition at line 78 of file argparse.py.

argparse._basestring
private

Definition at line 106 of file argparse.py.

argparse._set
private
argparse._sorted
private
argparse.action

Definition at line 125 of file argparse.py.

Referenced by argparse.ArgumentParser._parse_known_args().

argparse.category

Definition at line 127 of file argparse.py.

argparse.message

Definition at line 126 of file argparse.py.

argparse.module

Definition at line 128 of file argparse.py.

argparse.ONE_OR_MORE

Definition at line 135 of file argparse.py.

argparse.OPTIONAL

Definition at line 133 of file argparse.py.

argparse.PARSER

Definition at line 136 of file argparse.py.

argparse.SUPPRESS

Definition at line 131 of file argparse.py.

argparse.ZERO_OR_MORE

Definition at line 134 of file argparse.py.