CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
argparse._ArgumentGroup Class Reference
Inheritance diagram for argparse._ArgumentGroup:
argparse._ActionsContainer argparse._ActionsContainer argparse._MutuallyExclusiveGroup argparse._MutuallyExclusiveGroup

Public Member Functions

def __init__
 
def __init__
 
- Public Member Functions inherited from argparse._ActionsContainer
def __init__
 
def __init__
 
def add_argument
 
def add_argument
 
def add_argument_group
 
def add_argument_group
 
def add_mutually_exclusive_group
 
def add_mutually_exclusive_group
 
def get_default
 
def register
 
def register
 
def set_defaults
 
def set_defaults
 

Public Attributes

 title
 
- Public Attributes inherited from argparse._ActionsContainer
 argument_default
 
 conflict_handler
 
 description
 
 prefix_chars
 

Private Member Functions

def _add_action
 
def _add_action
 
def _remove_action
 
def _remove_action
 

Private Attributes

 _actions
 
 _defaults
 
 _group_actions
 
 _has_negative_number_optionals
 
 _mutually_exclusive_groups
 
 _option_string_actions
 
 _registries
 

Detailed Description

Definition at line 1471 of file argparse.py.

Constructor & Destructor Documentation

def argparse._ArgumentGroup.__init__ (   self,
  container,
  title = None,
  description = None,
  kwargs 
)

Definition at line 1473 of file argparse.py.

References update.

Referenced by argparse._ArgumentGroup.__init__().

1474  def __init__(self, container, title=None, description=None, **kwargs):
1475  # add any missing keyword arguments by checking the container
1476  update = kwargs.setdefault
1477  update('conflict_handler', container.conflict_handler)
1478  update('prefix_chars', container.prefix_chars)
1479  update('argument_default', container.argument_default)
1480  super_init = super(_ArgumentGroup, self).__init__
1481  super_init(description=description, **kwargs)
1482 
1483  # group attributes
1484  self.title = title
1485  self._group_actions = []
1486 
1487  # share most attributes with the container
1488  self._registries = container._registries
1489  self._actions = container._actions
1490  self._option_string_actions = container._option_string_actions
1491  self._defaults = container._defaults
1493  container._has_negative_number_optionals
1494  self._mutually_exclusive_groups = container._mutually_exclusive_groups
#define update(a, b)
def argparse._ArgumentGroup.__init__ (   self,
  container,
  title = None,
  description = None,
  kwargs 
)

Definition at line 1452 of file argparse.py.

References argparse._ArgumentGroup.__init__(), argparse._ActionsContainer._actions, argparse._ActionsContainer._defaults, argparse._ArgumentGroup._group_actions, argparse._ActionsContainer._has_negative_number_optionals, argparse._ActionsContainer._option_string_actions, argparse._ActionsContainer._registries, Message.title, cscdqm::HistoBookRequest.title, DB_ME.title, FWTriggerTableView::Column.title, SiPixelHistoricInfoReader.title, SiPixelTrackerMap.title, DQMGenericClient::EfficOption.title, big::bigHeader.title, EcalDQMBinningService::AxisSpecs.title, TrackerMap.title, argparse._ArgumentGroup.title, and update.

1453  def __init__(self, container, title=None, description=None, **kwargs):
1454  # add any missing keyword arguments by checking the container
1455  update = kwargs.setdefault
1456  update('conflict_handler', container.conflict_handler)
1457  update('prefix_chars', container.prefix_chars)
1458  update('argument_default', container.argument_default)
1459  super_init = super(_ArgumentGroup, self).__init__
1460  super_init(description=description, **kwargs)
1461 
1462  # group attributes
1463  self.title = title
1464  self._group_actions = []
1465 
1466  # share most attributes with the container
1467  self._registries = container._registries
1468  self._actions = container._actions
1469  self._option_string_actions = container._option_string_actions
1470  self._defaults = container._defaults
1472  container._has_negative_number_optionals
#define update(a, b)

Member Function Documentation

def argparse._ArgumentGroup._add_action (   self,
  action 
)
private

Definition at line 1473 of file argparse.py.

References argparse._ArgumentGroup._add_action().

1474  def _add_action(self, action):
1475  action = super(_ArgumentGroup, self)._add_action(action)
1476  self._group_actions.append(action)
1477  return action
def argparse._ArgumentGroup._add_action (   self,
  action 
)
private

Definition at line 1495 of file argparse.py.

Referenced by argparse._ArgumentGroup._add_action(), and python.rootplot.argparse._ActionsContainer.add_argument().

1496  def _add_action(self, action):
1497  action = super(_ArgumentGroup, self)._add_action(action)
1498  self._group_actions.append(action)
1499  return action
def argparse._ArgumentGroup._remove_action (   self,
  action 
)
private

Definition at line 1478 of file argparse.py.

References argparse._ArgumentGroup._remove_action().

1479  def _remove_action(self, action):
1480  super(_ArgumentGroup, self)._remove_action(action)
1481  self._group_actions.remove(action)
1482 
def argparse._ArgumentGroup._remove_action (   self,
  action 
)
private

Definition at line 1500 of file argparse.py.

Referenced by argparse._ArgumentGroup._remove_action().

1501  def _remove_action(self, action):
1502  super(_ArgumentGroup, self)._remove_action(action)
1503  self._group_actions.remove(action)
1504 

Member Data Documentation

argparse._ArgumentGroup._actions
private

Definition at line 1488 of file argparse.py.

Referenced by python.rootplot.argparse.ArgumentParser._get_optional_actions(), python.rootplot.argparse.ArgumentParser._get_positional_actions(), python.rootplot.argparse.ArgumentParser._parse_known_args(), python.rootplot.argparse.ArgumentParser.format_help(), python.rootplot.argparse.ArgumentParser.format_usage(), python.rootplot.argparse._ActionsContainer.get_default(), python.rootplot.argparse.ArgumentParser.parse_known_args(), and python.rootplot.argparse._ActionsContainer.set_defaults().

argparse._ArgumentGroup._defaults
private

Definition at line 1490 of file argparse.py.

Referenced by python.rootplot.argparse._ActionsContainer.add_argument(), and python.rootplot.argparse.ArgumentParser.parse_known_args().

argparse._ArgumentGroup._group_actions
private

Definition at line 1484 of file argparse.py.

Referenced by argparse._ArgumentGroup.__init__().

argparse._ArgumentGroup._has_negative_number_optionals
private

Definition at line 1491 of file argparse.py.

Referenced by python.rootplot.argparse._ActionsContainer._add_action(), and python.rootplot.argparse.ArgumentParser._parse_optional().

argparse._ArgumentGroup._mutually_exclusive_groups
private

Definition at line 1493 of file argparse.py.

Referenced by python.rootplot.argparse.ArgumentParser._parse_known_args(), python.rootplot.argparse.ArgumentParser.add_subparsers(), python.rootplot.argparse.ArgumentParser.format_help(), and python.rootplot.argparse.ArgumentParser.format_usage().

argparse._ArgumentGroup._option_string_actions
private

Definition at line 1489 of file argparse.py.

Referenced by python.rootplot.argparse._ActionsContainer._add_action(), python.rootplot.argparse._ActionsContainer._check_conflict(), python.rootplot.argparse.ArgumentParser._get_option_tuples(), python.rootplot.argparse.ArgumentParser._parse_known_args(), and python.rootplot.argparse.ArgumentParser._parse_optional().

argparse._ArgumentGroup._registries
private

Definition at line 1487 of file argparse.py.

Referenced by python.rootplot.argparse._ActionsContainer._registry_get().

argparse._ArgumentGroup.title

Definition at line 1483 of file argparse.py.

Referenced by argparse._ArgumentGroup.__init__(), Vispa.Views.LineDecayView.LineDecayContainer.autolayout(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), Formatter.SimpleHTMLFormatter.headers(), python.rootplot.root2matplotlib.HistStack.histstack(), Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.root2matplotlib.Hist.show_titles(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), python.rootplot.utilities.Hist2D.TH2F(), and python.rootplot.root2matplotlib.Hist2D.TH2F().