Package horizons :: Module constants :: Class _LanguageNameDict
[hide private]
[frames] | no frames]

Class _LanguageNameDict

source code

object --+    
         |    
      dict --+
             |
            _LanguageNameDict

Instance Methods [hide private]
 
__getitem__(self, key)
x[y]
source code
 
get_english(self, key) source code
 
get_by_value(self, value, english=False) source code
    Inherited from dict
 
__cmp__(x, y)
cmp(x,y)
True if D has a key k, else False
__contains__(D, k)
 
__delitem__(x, y)
del x[y]
 
__eq__(x, y)
x==y
 
__ge__(x, y)
x>=y
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__gt__(x, y)
x>y
new empty dictionary

__init__()
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(x)
iter(x)
 
__le__(x, y)
x<=y
 
__len__(x)
len(x)
 
__lt__(x, y)
x<y
 
__ne__(x, y)
x!=y
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
__setitem__(x, i, y)
x[i]=y
size of D in memory, in bytes
__sizeof__(D)
size of object in memory, in bytes
None
clear(D)
Remove all items from D.
a shallow copy of D
copy(D)
New dict with keys from S and values equal to v
fromkeys(dict, S, v=...)
v defaults to None.
D[k] if k in D, else d
get(D, k, d=...)
d defaults to None.
True if D has a key k, else False
has_key(D, k)
list of D's (key, value) pairs, as 2-tuples
items(D)
an iterator over the (key, value) items of D
iteritems(D)
an iterator over the keys of D
iterkeys(D)
an iterator over the values of D
itervalues(D)
list of D's keys
keys(D)
v, remove specified key and return the corresponding value
pop(D, k, d=...)
If key is not found, d is returned if given, otherwise KeyError is raised
(k, v), remove and return some (key, value) pair as a
popitem(D)
2-tuple; but raise KeyError if D is empty.
D.get(k,d), also set D[k]=d if k not in D
setdefault(D, k, d=...)
None
update(D, E=..., **F)
Update D from dict/iterable E and F.
list of D's values
values(D)
a set-like object providing a view on D's items
viewitems(D)
a set-like object providing a view on D's keys
viewkeys(D)
an object providing a view on D's values
viewvalues(D)
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
 
__str__(x)
str(x)
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Class Variables [hide private]
    Inherited from dict
  __hash__ = None
hash(x)
Properties [hide private]
    Inherited from object
  __class__
the object's class
Method Details [hide private]

__getitem__(self, key)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)