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

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

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

Definition at line 137 of file argparse.py.

00138                                          :
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 # ===============

def argparse::_get_action_name (   argument) [private]

Definition at line 670 of file argparse.py.

00671                               :
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 

def argparse::_sorted (   iterable,
  reverse = False 
) [private]

Definition at line 114 of file argparse.py.

00114                                         :
00115         result = list(iterable)
00116         result.sort()
00117         if reverse:
00118             result.reverse()
00119         return result
00120 
00121 # silence Python 2.6 buggy warnings about Exception.message

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.

string argparse::__version__ = '1.1'

Definition at line 64 of file argparse.py.

argparse::_basestring = basestring

Definition at line 106 of file argparse.py.

Definition at line 111 of file argparse.py.

string argparse::_UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'

Definition at line 106 of file argparse.py.

string argparse::action = 'ignore'

Definition at line 125 of file argparse.py.

argparse::category = DeprecationWarning,

Definition at line 127 of file argparse.py.

Referenced by edm::ActionTable::add(), HLTLogMonitorFilter::addCategory(), DTLocalTriggerBaseTest::analyze(), DQMMessageLogger::analyze(), PrintLoadingPlugins::askedToLoad(), DTLocalTriggerBaseTest::beginJob(), DTLocalTriggerBaseTest::beginLuminosityBlock(), PhysicalPartsTree::beginRun(), DTLocalTriggerSynchTest::beginRun(), DTLocalTriggerBaseTest::beginRun(), DTLocalTriggerBaseTest::bookCmsHistos(), DTLocalTriggerBaseTest::bookSectorHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), EcalRawToRecHitRoI::Cand(), CosmicMuonSeedGenerator::checkQuality(), edm::service::MessageLoggerScribe::configure_dest(), CosmicMuonSeedGenerator::createSeed(), CosmicMuonSeedGenerator::createSeeds(), dd_to_html(), EcalRawToRecHitRoI::EcalRawToRecHitRoI(), EcalRawToRecHitRoI::Egamma(), EcalRawToRecHitRoI::Egamma_OneL1EmCollection(), DTLocalTriggerBaseTest::endJob(), DTLocalTriggerSynchTest::endJob(), DTLocalTriggerBaseTest::endRun(), LogErrorFilter::filter(), HLTLogMonitorFilter::filter(), FWEveViewManager::FWEveViewManager(), L1GtVhdlWriterCore::getCategoryFromObject(), L1GtVhdlWriterCore::getDefValsFromTriggerMenu(), DTLocalTriggerSynchTest::getFloatFromME(), HLTLogMonitorFilter::HLTLogMonitorFilter(), VertexCategories::is(), TrackCategories::is(), EcalRawToRecHitRoI::Jet(), EcalRawToRecHitRoI::Jet_OneL1JetCollection(), EcalRawToRecHitRoI::ListOfFEDS(), CosmicMuonSeedGenerator::makeSegPairs(), GlobalMuonTrajectoryBuilder::makeTkCandCollection(), L3MuonTrajectoryBuilder::makeTkCandCollection(), EcalRawToRecHitRoI::Muon(), EcalRawToRecHitRoI::OneCandCollection(), FixedAreaIsolationCone::operator()(), edm::service::SimpleMemoryCheck::postEndJob(), Selection< C, Selector, StoreContainer >::print(), CosmicMuonSeedGenerator::produce(), EcalRawToRecHitRoI::produce(), pat::PATTriggerProducer::produce(), DTLocalTriggerSynchTest::runClientDiagnostic(), DTFineDelayCorr::runClientDiagnostic(), DTLocalTriggerLutTest::runClientDiagnostic(), CosmicMuonSeedGenerator::selectSegments(), DTTSTheta::setConfig(), L3MuonTrajectoryBuilder::setEvent(), GlobalMuonTrajectoryBuilder::setEvent(), L3MuonTrajectoryBuilder::trajectories(), GlobalMuonTrajectoryBuilder::trajectories(), TaggingVariablePlotter::VariableConfig::VariableConfig(), and DTLocalTriggerBaseTest::~DTLocalTriggerBaseTest().

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(), PFCandCommonVertexFitterBase::fill(), SiPixelUtility::fillPaveText(), HLTHighLevel::filter(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), XMLDOMBlock::getNewDocument(), cond::Utilities::getOptionValue(), cond::Utilities::hasOptionValue(), cond::XMLAuthenticationService::XMLAuthenticationService::initialize(), L1GtTriggerMenuXmlParser::initXML(), pat::JetCorrFactorsProducer::JetCorrFactorsProducer(), 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(), CompareToMedian::setMessage(), Comp2RefChi2::setMessage(), JetTagMVATrainer::setup(), JetTagProducer::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 103 of file argparse.py.

string argparse::OPTIONAL = '?'

Definition at line 101 of file argparse.py.

string argparse::PARSER = 'A...'

Definition at line 104 of file argparse.py.

string argparse::REMAINDER = '...'

Definition at line 105 of file argparse.py.

string argparse::SUPPRESS = '==SUPPRESS=='

Definition at line 99 of file argparse.py.

string argparse::ZERO_OR_MORE = '*'

Definition at line 102 of file argparse.py.