Docs for cache.ram.storage

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<class 'collections.OrderedDict'>


Dictionary that remembers insertion order


Attributes


cache.ram.storage._OrderedDict__map <type 'dict'> belongs to class <type 'dict'>
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

cache.ram.storage._OrderedDict__marker <type 'object'> belongs to class <type 'object'>
The most base type

cache.ram.storage._OrderedDict__root <type 'list'> belongs to class <type 'list'>
list() -> new empty list list(iterable) -> new list initialized from iterable's items

cache.ram.storage._OrderedDict__update <type 'instancemethod'> belongs to class <type 'instancemethod'>
D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

cache.ram.storage.__class__ <type 'type'> extends (<type 'dict'>,) belongs to class <type 'type'>
Dictionary that remembers insertion order

cache.ram.storage.__cmp__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y)

cache.ram.storage.__contains__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.__contains__(k) -> True if D has a key k, else False

cache.ram.storage.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

cache.ram.storage.__delitem__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__delitem__(y) <==> del od[y]

cache.ram.storage.__dict__ <type 'dict'> belongs to class <type 'dict'>
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

cache.ram.storage.__doc__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

cache.ram.storage.__eq__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive while comparison to a regular mapping is order-insensitive.

cache.ram.storage.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
default object formatter

cache.ram.storage.__ge__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ge__(y) <==> x>=y

cache.ram.storage.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

cache.ram.storage.__getitem__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
x.__getitem__(y) <==> x[y]

cache.ram.storage.__gt__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__gt__(y) <==> x>y

cache.ram.storage.__hash__ <type 'NoneType'> belongs to class <type 'NoneType'>

cache.ram.storage.__init__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.

cache.ram.storage.__iter__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__iter__() <==> iter(od)

cache.ram.storage.__le__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__le__(y) <==> x<=y

cache.ram.storage.__len__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__len__() <==> len(x)

cache.ram.storage.__lt__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__lt__(y) <==> x<y

cache.ram.storage.__module__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

cache.ram.storage.__ne__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__ne__(y) <==> od!=y

cache.ram.storage.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

cache.ram.storage.__reduce__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
Return state information for pickling

cache.ram.storage.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

cache.ram.storage.__repr__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__repr__() <==> repr(od)

cache.ram.storage.__reversed__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__reversed__() <==> reversed(od)

cache.ram.storage.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

cache.ram.storage.__setitem__ <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.__setitem__(i, y) <==> od[i]=y

cache.ram.storage.__sizeof__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.__sizeof__() -> size of D in memory, in bytes

cache.ram.storage.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

cache.ram.storage.__subclasshook__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Abstract classes can override this to customize issubclass(). This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

cache.ram.storage.__weakref__ <type 'NoneType'> belongs to class <type 'NoneType'>

cache.ram.storage.clear <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.clear() -> None. Remove all items from od.

cache.ram.storage.copy <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.copy() -> a shallow copy of od

cache.ram.storage.fromkeys <type 'instancemethod'> belongs to class <type 'instancemethod'>
OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S. If not specified, the value defaults to None.

cache.ram.storage.get <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

cache.ram.storage.has_key <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.has_key(k) -> True if D has a key k, else False

cache.ram.storage.items <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.items() -> list of (key, value) pairs in od

cache.ram.storage.iteritems <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.iteritems -> an iterator over the (key, value) pairs in od

cache.ram.storage.iterkeys <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.iterkeys() -> an iterator over the keys in od

cache.ram.storage.itervalues <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.itervalues -> an iterator over the values in od

cache.ram.storage.keys <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.keys() -> list of keys in od

cache.ram.storage.pop <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised.

cache.ram.storage.popitem <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.popitem() -> (k, v), return and remove a (key, value) pair. Pairs are returned in LIFO order if last is true or FIFO order if false.

cache.ram.storage.setdefault <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od

cache.ram.storage.update <type 'instancemethod'> belongs to class <type 'instancemethod'>
D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

cache.ram.storage.values <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.values() -> list of values in od

cache.ram.storage.viewitems <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.viewitems() -> a set-like object providing a view on od's items

cache.ram.storage.viewkeys <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.viewkeys() -> a set-like object providing a view on od's keys

cache.ram.storage.viewvalues <type 'instancemethod'> belongs to class <type 'instancemethod'>
od.viewvalues() -> an object providing a view on od's values