Package portage :: Package cache :: Module mappings :: Class UserDict
[hide private]

Class UserDict

source code

object --+        
         |        
   Mapping --+    
             |    
MutableMapping --+
                 |
                UserDict
Known Subclasses:


Use this class as a substitute for UserDict.UserDict so that
code converted via 2to3 will run:

     http://bugs.python.org/issue2876

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code
 
__contains__(self, key) source code
 
__iter__(self) source code
 
__len__(self) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, item) source code
 
__delitem__(self, key) source code
 
clear(self) source code
 
keys(self) source code

Inherited from MutableMapping: pop, popitem, setdefault, update

Inherited from Mapping: get, items, iteritems, iterkeys, itervalues, values

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  data

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__contains__(self, key)
(In operator)

source code 
Overrides: Mapping.__contains__

__iter__(self)

source code 
Overrides: Mapping.__iter__

__len__(self)
(Length operator)

source code 
Overrides: Mapping.__len__

clear(self)

source code 
Overrides: MutableMapping.clear

keys(self)

source code 
Overrides: Mapping.__iter__