Docs for BODY

[ Python Tutorial ] [ Python Libraries ] [ web2py source docs ]

Description


<class 'tuple'>


Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.

If the argument is a tuple, the return value is the same object.



Attributes


BODY.__add__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self+value.


BODY.__class__ <class 'type'> extends (<class 'object'>,) belongs to class <class 'type'>

Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.

If the argument is a tuple, the return value is the same object.


BODY.__class_getitem__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

See PEP 585


BODY.__contains__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return key in self.


BODY.__delattr__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Implement delattr(self, name).


BODY.__dir__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Default dir() implementation.


BODY.__doc__ <class 'str'> belongs to class <class 'str'>

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.


BODY.__eq__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self==value.


BODY.__format__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Default object formatter.


BODY.__ge__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self>=value.


BODY.__getattribute__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return getattr(self, name).


BODY.__getitem__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self[key].


BODY.__getnewargs__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

BODY.__getstate__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Helper for pickle.


BODY.__gt__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self>value.


BODY.__hash__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return hash(self).


BODY.__init__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Initialize self. See help(type(self)) for accurate signature.


BODY.__init_subclass__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.


BODY.__iter__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Implement iter(self).


BODY.__le__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self<=value.


BODY.__len__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return len(self).


BODY.__lt__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self<value.


BODY.__mul__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self*value.


BODY.__ne__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return self!=value.


BODY.__new__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Create and return a new object. See help(type) for accurate signature.


BODY.__reduce__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Helper for pickle.


BODY.__reduce_ex__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Helper for pickle.


BODY.__repr__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return repr(self).


BODY.__rmul__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return value*self.


BODY.__setattr__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Implement setattr(self, name, value).


BODY.__sizeof__ <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Size of object in memory, in bytes.


BODY.__str__ <class 'method-wrapper'> belongs to class <class 'method-wrapper'>

Return str(self).


BODY.__subclasshook__ <class 'builtin_function_or_method'> belongs to class <class '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).


BODY.count <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Return number of occurrences of value.


BODY.index <class 'builtin_function_or_method'> belongs to class <class 'builtin_function_or_method'>

Return first index of value.

Raises ValueError if the value is not present.