buffer :: Class buffer
[hide private]
[frames] | no frames]

Class buffer

object --+
         |
        buffer

buffer(object [, offset[, size]])

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

Instance Methods [hide private]
 
__add__(x, y)
x+y
 
__cmp__(x, y)
cmp(x,y)
 
__delitem__(x, y)
del x[y]
 
__delslice__(x, i, j)
del x[i:j]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__getitem__(x, y)
x[y]
 
__getslice__(x, i, j)
x[i:j]
 
__hash__(x)
hash(x)
 
__len__(x)
len(x)
 
__mul__(x, n)
x*n
a new object with type S, a subtype of T

__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
__rmul__(x, n)
n*x
 
__setitem__(x, i, y)
x[i]=y
 
__setslice__(x, i, j, y)
x[i:j]=y
 
__str__(x)
str(x)

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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