Create a new buffer object which references the given object. The
buffer will reference a slice of the target object from the start of the
object (or at the specified offset). The slice will extend to the end of
the target object (or with the specified size).
|
__add__(x,
y)
x+y
|
|
__cmp__(x,
y)
cmp(x,y)
|
|
__delitem__(x,
y)
del x[y]
|
|
|
|
|
|
__getitem__(x,
y)
x[y]
|
|
|
|
|
|
__len__(x)
len(x)
|
|
__mul__(x,
n)
x*n
|
a new object with type S, a subtype of T
|
|
|
|
|
__rmul__(x,
n)
n*x
|
|
__setitem__(x,
i,
y)
x[i]=y
|
|
|
|
|
__delslice__(x,
i,
j)
(Slice deletion operator)
del x[i:j]
Use of negative indices is not supported.
__getattribute__(...)
x.__getattribute__('name') <==> x.name
- Overrides:
object.__getattribute__
__getslice__(x,
i,
j)
(Slicling operator)
x[i:j]
Use of negative indices is not supported.
__hash__(x)
(Hashing function)
hash(x)
- Overrides:
object.__hash__
__new__(T,
S,
...)
- Returns: a new object with type S, a subtype of T
- Overrides:
object.__new__
__repr__(x)
(Representation operator)
repr(x)
- Overrides:
object.__repr__
__setslice__(x,
i,
j,
y)
(Slice assignment operator)
x[i:j]=y
Use of negative indices is not supported.
__str__(x)
(Informal representation operator)
str(x)
- Overrides:
object.__str__