Docs for T.plural_dict

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

Description


<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)


Attributes


T.plural_dict.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
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)

T.plural_dict.__cmp__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y)

T.plural_dict.__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

T.plural_dict.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

T.plural_dict.__delitem__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delitem__(y) <==> del x[y]

T.plural_dict.__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.

T.plural_dict.__eq__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__eq__(y) <==> x==y

T.plural_dict.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
default object formatter

T.plural_dict.__ge__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ge__(y) <==> x>=y

T.plural_dict.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

T.plural_dict.__getitem__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
x.__getitem__(y) <==> x[y]

T.plural_dict.__gt__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__gt__(y) <==> x>y

T.plural_dict.__hash__ <type 'NoneType'> belongs to class <type 'NoneType'>

T.plural_dict.__init__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see help(type(x)) for signature

T.plural_dict.__iter__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__iter__() <==> iter(x)

T.plural_dict.__le__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__le__(y) <==> x<=y

T.plural_dict.__len__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__len__() <==> len(x)

T.plural_dict.__lt__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__lt__(y) <==> x<y

T.plural_dict.__ne__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ne__(y) <==> x!=y

T.plural_dict.__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

T.plural_dict.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

T.plural_dict.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

T.plural_dict.__repr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x)

T.plural_dict.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

T.plural_dict.__setitem__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setitem__(i, y) <==> x[i]=y

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

T.plural_dict.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

T.plural_dict.__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).

T.plural_dict.clear <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.clear() -> None. Remove all items from D.

T.plural_dict.copy <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.copy() -> a shallow copy of D

T.plural_dict.fromkeys <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v. v defaults to None.

T.plural_dict.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.

T.plural_dict.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

T.plural_dict.items <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.items() -> list of D's (key, value) pairs, as 2-tuples

T.plural_dict.iteritems <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.iteritems() -> an iterator over the (key, value) items of D

T.plural_dict.iterkeys <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.iterkeys() -> an iterator over the keys of D

T.plural_dict.itervalues <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.itervalues() -> an iterator over the values of D

T.plural_dict.keys <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.keys() -> list of D's keys

T.plural_dict.pop <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.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

T.plural_dict.popitem <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty.

T.plural_dict.setdefault <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

T.plural_dict.update <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.update([E, ]**F) -> None. Update D from dict/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 in F: D[k] = F[k]

T.plural_dict.values <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.values() -> list of D's values

T.plural_dict.viewitems <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.viewitems() -> a set-like object providing a view on D's items

T.plural_dict.viewkeys <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.viewkeys() -> a set-like object providing a view on D's keys

T.plural_dict.viewvalues <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
D.viewvalues() -> an object providing a view on D's values