We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

buffer

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

Creates a new buffer object that references the data buffer of the given object.

The object argument must be an object that supports the buffer call interface (such as strings, arrays, and buffers). A new buffer object will be created which references the object argument. The buffer object will be a slice from the beginning of object (or from the specified offset). The slice will extend to the end of object (or will have a length given by the size argument).