CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
python.rootplot.argparse._AttributeHolder Class Reference
Inheritance diagram for python.rootplot.argparse._AttributeHolder:
python.rootplot.argparse.Action python.rootplot.argparse.ArgumentParser python.rootplot.argparse.Namespace python.rootplot.argparse._AppendAction python.rootplot.argparse._AppendConstAction python.rootplot.argparse._CountAction python.rootplot.argparse._HelpAction python.rootplot.argparse._StoreAction python.rootplot.argparse._StoreConstAction python.rootplot.argparse._SubParsersAction python.rootplot.argparse._SubParsersAction._ChoicesPseudoAction python.rootplot.argparse._VersionAction

Public Member Functions

def __repr__
 

Private Member Functions

def _get_args
 
def _get_kwargs
 

Detailed Description

Abstract base class that provides __repr__.

The __repr__ method returns a string in the format::
    ClassName(attr=name, attr=name, ...)
The attributes are determined either by a class-level attribute,
'_kwarg_names', or by inspecting the instance __dict__.

Definition at line 147 of file argparse.py.

Member Function Documentation

def python.rootplot.argparse._AttributeHolder.__repr__ (   self)

Definition at line 156 of file argparse.py.

References argparse._AttributeHolder._get_args(), python.rootplot.argparse._AttributeHolder._get_args(), argparse._AttributeHolder._get_kwargs(), python.rootplot.argparse._AttributeHolder._get_kwargs(), argparse.Action._get_kwargs(), argparse.ArgumentParser._get_kwargs(), and join().

157  def __repr__(self):
158  type_name = type(self).__name__
159  arg_strings = []
160  for arg in self._get_args():
161  arg_strings.append(repr(arg))
162  for name, value in self._get_kwargs():
163  arg_strings.append('%s=%r' % (name, value))
164  return '%s(%s)' % (type_name, ', '.join(arg_strings))
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def python.rootplot.argparse._AttributeHolder._get_args (   self)
private

Definition at line 168 of file argparse.py.

Referenced by python.rootplot.argparse._AttributeHolder.__repr__().

169  def _get_args(self):
170  return []
171 
def python.rootplot.argparse._AttributeHolder._get_kwargs (   self)
private

Definition at line 165 of file argparse.py.

References python.rootplot.argparse._sorted.

Referenced by python.rootplot.argparse._AttributeHolder.__repr__().

166  def _get_kwargs(self):
167  return _sorted(self.__dict__.items())