CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  ArgumentTypeError
 
class  FileType
 
class  HelpFormatter
 
class  Namespace
 
class  RawDescriptionHelpFormatter
 
class  RawTextHelpFormatter
 

Functions

def _callable
 
def _ensure_value
 
def _get_action_name
 
def _sorted
 

Variables

list __all__
 
string __version__ = '1.1'
 
 _basestring = basestring
 
 _set = set
 
 _sorted = sorted
 
string _UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'
 
string action = 'ignore'
 
 category = DeprecationWarning,
 
string message = 'BaseException.message has been deprecated as of Python 2.6'
 
string module = 'argparse'
 
string ONE_OR_MORE = '+'
 
string OPTIONAL = '?'
 
string PARSER = 'A...'
 
string REMAINDER = '...'
 
string SUPPRESS = '==SUPPRESS=='
 
string ZERO_OR_MORE = '*'
 

Function Documentation

def argparse._callable (   obj)
private

Definition at line 94 of file argparse.py.

Referenced by argparse.ArgumentParser._get_value(), and argparse._ActionsContainer.add_argument().

94 
95 def _callable(obj):
96  return hasattr(obj, '__call__') or hasattr(obj, '__bases__')
97 
def _callable
Definition: argparse.py:94
def argparse._ensure_value (   namespace,
  name,
  value 
)
private

Definition at line 136 of file argparse.py.

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

137 def _ensure_value(namespace, name, value):
138  if getattr(namespace, name, None) is None:
139  setattr(namespace, name, value)
140  return getattr(namespace, name)
141 
142 
143 # ===============
144 # Formatting Help
145 # ===============
def _ensure_value
Definition: argparse.py:136
def argparse._get_action_name (   argument)
private

Definition at line 669 of file argparse.py.

References join().

Referenced by argparse.ArgumentError.__init__(), argparse.ArgumentDefaultsHelpFormatter._get_help_string(), and argparse.ArgumentParser._parse_known_args().

670 def _get_action_name(argument):
671  if argument is None:
672  return None
673  elif argument.option_strings:
674  return '/'.join(argument.option_strings)
675  elif argument.metavar not in (None, SUPPRESS):
676  return argument.metavar
677  elif argument.dest not in (None, SUPPRESS):
678  return argument.dest
679  else:
680  return None
681 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def _get_action_name
Definition: argparse.py:669
def argparse._sorted (   iterable,
  reverse = False 
)
private

Definition at line 114 of file argparse.py.

References _sorted, and list().

115  def _sorted(iterable, reverse=False):
116  result = list(iterable)
117  result.sort()
118  if reverse:
119  result.reverse()
120  return result
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

list argparse.__all__
Initial value:
1 = [
2  'ArgumentParser',
3  'ArgumentError',
4  'ArgumentTypeError',
5  'FileType',
6  'HelpFormatter',
7  'ArgumentDefaultsHelpFormatter',
8  'RawDescriptionHelpFormatter',
9  'RawTextHelpFormatter',
10  'Namespace',
11  'Action',
12  'ONE_OR_MORE',
13  'OPTIONAL',
14  'PARSER',
15  'REMAINDER',
16  'SUPPRESS',
17  'ZERO_OR_MORE',
18 ]

Definition at line 65 of file argparse.py.

string argparse.__version__ = '1.1'

Definition at line 64 of file argparse.py.

argparse._basestring = basestring

Definition at line 106 of file argparse.py.

argparse._set = set

Definition at line 101 of file argparse.py.

Referenced by argparse.HelpFormatter._format_actions_usage(), argparse._ActionsContainer._get_optional_kwargs(), argparse.ArgumentParser._parse_known_args(), HcalLutManager.getCompressionLutXmlFromAsciiMaster(), HcalLutManager.getLinearizationLutXmlFromAsciiMasterEmap(), HcalLutManager.getLinearizationLutXmlFromAsciiMasterEmap_new(), HcalLutManager_test.getLutSetFromFile_test(), and HcalLutManager.getLutXmlFromAsciiMaster().

argparse._sorted = sorted

Definition at line 111 of file argparse.py.

Referenced by argparse.HelpFormatter._format_actions_usage(), argparse._AttributeHolder._get_kwargs(), and _sorted().

string argparse._UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'

Definition at line 105 of file argparse.py.

string argparse.action = 'ignore'

Definition at line 125 of file argparse.py.

Referenced by argparse.ArgumentParser._parse_known_args().

argparse.category = DeprecationWarning,

Definition at line 127 of file argparse.py.

string argparse.message = 'BaseException.message has been deprecated as of Python 2.6'

Definition at line 126 of file argparse.py.

Referenced by edm::eventsetup::NoDataExceptionBase.constructMessage(), evf::FWEPWrapper.createAndSendScalersMessage(), DDIsValid(), MuonAlignmentInputXML.do_setposition(), DDValue.doubles(), StoreEcalCondition.endJob(), SiStripCMMonitorPlugin.endJob(), dddDetails.errorReadMapType(), cms::Exception.Exception(), pat::JetCorrFactorsProducer.expand(), cscdqm::XMLFileErrorHandler.fatalError(), CandCommonVertexFitterBase.fill(), PFCandCommonVertexFitterBase.fill(), CandKinematicVertexFitter.fill(), SiPixelUtility.fillPaveText(), HLTHighLevel.filter(), SiStripTrackerMapCreator.getDetectorFlagAndComment(), XMLDOMBlock.getNewDocument(), cond::Utilities.getOptionValue(), cond::Utilities.hasOptionValue(), cond::XMLAuthenticationService::XMLAuthenticationService.initialize(), L1GtTriggerMenuXmlParser.initXML(), cscdqm::Collection.load(), MonitorXMLParser.load(), PropagatorWithMaterial.materialAtSource(), MonitorXMLParser.MonitorXMLParser(), AlignableModifier.moveAlignable(), AlignableModifier.moveAlignableLocal(), MuonAlignmentInputXML.newAlignableMuon(), DDValue.operator[](), XMLDOMBlock.parse(), SummaryPlotXmlParser.parseXML(), DDStreamer.pos_read(), pat::JetCorrFactors.print(), SiStripActionExecutor.printFaultyModuleList(), cond::XMLAuthenticationService::XMLAuthenticationService.processFile(), magneticfield::AutoMagneticFieldESProducer.produce(), raiseDQMError(), FWConfigurationManager.readFromOldFile(), SiStripInformationExtractor.readQTestSummary(), edm::multicore::MessageReceiverForSource.receive(), ora::MappingElement.recordIdColumns(), CmsShowEDI.removeItem(), cond::IOVEditor.reportError(), RooGKCounter.RooGKCounter(), AlignableModifier.rotateAlignable(), AlignableModifier.rotateAlignableLocal(), evf::CPUStat.sendLegenda(), XMLProcessor.serializeDOM(), edm::EventProcessor.setExceptionMessageFiles(), edm::EventProcessor.setExceptionMessageLumis(), edm::EventProcessor.setExceptionMessageRuns(), RooGKCounter.setMessage(), Comp2RefChi2.setMessage(), CompareToMedian.setMessage(), JetTagProducer.setup(), JetTagMVATrainer.setup(), edm::ParameterSwitchBase.throwNoCaseForSwitchValue(), cscdqm::XMLFileErrorHandler.warning(), FWConfigurationManager.writeToFile(), XMLDOMBlock.XMLDOMBlock(), statemachine::HandleFiles.~HandleFiles(), statemachine::HandleLumis.~HandleLumis(), statemachine::HandleRuns.~HandleRuns(), MonitorXMLParser.~MonitorXMLParser(), and TagNames.~TagNames().

string argparse.module = 'argparse'

Definition at line 128 of file argparse.py.

string argparse.ONE_OR_MORE = '+'

Definition at line 102 of file argparse.py.

string argparse.OPTIONAL = '?'

Definition at line 100 of file argparse.py.

string argparse.PARSER = 'A...'

Definition at line 103 of file argparse.py.

string argparse.REMAINDER = '...'

Definition at line 104 of file argparse.py.

string argparse.SUPPRESS = '==SUPPRESS=='

Definition at line 98 of file argparse.py.

string argparse.ZERO_OR_MORE = '*'

Definition at line 101 of file argparse.py.