pyjsdl :: util :: Dict :: Class Dict

Class Dict

Dictionary object.

Dict can use an object key as Transcrypt is restricted to str keys. Object requires an unique identifier _identity attribute (int/str).

Instance Methods
 
__init__(self)
 
__str__(self)
 
__repr__(self)
 
__iter__(self)
 
__getitem__(self, key)
 
__setitem__(self, key, val)
 
get(self, key)
Get value by object key.
 
setdefault(self, key, val=None)
Set value of object key.
 
keys(self)
Retrieve object keys.
 
values(self)
Retrieve values.
 
items(self)
Retrieve object key, value items.