CMS 3D CMS Logo

Public Member Functions | Static Private Attributes

argparse::Namespace Class Reference

Inheritance diagram for argparse::Namespace:
argparse::_AttributeHolder argparse::_AttributeHolder

List of all members.

Public Member Functions

def __contains__
def __eq__
def __eq__
def __init__
def __init__
def __ne__
def __ne__

Static Private Attributes

 __hash__ = None

Detailed Description

Simple object for storing attributes.

Implements equality by attribute names and values, and provides a simple
string representation.

Definition at line 1142 of file argparse.py.


Constructor & Destructor Documentation

def argparse::Namespace::__init__ (   self,
  kwargs 
)

Definition at line 1149 of file argparse.py.

01150                                 :
01151         for name in kwargs:
01152             setattr(self, name, kwargs[name])

def argparse::Namespace::__init__ (   self,
  kwargs 
)

Definition at line 1150 of file argparse.py.

01150                                 :
01151         for name in kwargs:
01152             setattr(self, name, kwargs[name])
01153 

Member Function Documentation

def argparse::Namespace::__contains__ (   self,
  key 
)

Definition at line 1161 of file argparse.py.

01162                                :
01163         return key in self.__dict__
01164 

def argparse::Namespace::__eq__ (   self,
  other 
)

Definition at line 1154 of file argparse.py.

01154                            :
01155         return vars(self) == vars(other)
01156 
def argparse::Namespace::__eq__ (   self,
  other 
)

Definition at line 1155 of file argparse.py.

01156                            :
01157         return vars(self) == vars(other)

def argparse::Namespace::__ne__ (   self,
  other 
)

Definition at line 1158 of file argparse.py.

01159                            :
01160         return not (self == other)

def argparse::Namespace::__ne__ (   self,
  other 
)

Definition at line 1157 of file argparse.py.

01157                            :
01158         return not (self == other)
01159 
01160 

Member Data Documentation

argparse::Namespace::__hash__ = None [static, private]

Definition at line 1153 of file argparse.py.