PyDocs

Nav

Python Runtime Services

object.__buffer__

builtins

method of object
  • object.__buffer__(self, flags)
Called when a buffer is requested from self (for example, by the memoryview constructor). The flags argument is an integer representing the kind of buffer requested, affecting for example whether the returned buffer is read-only or writable. inspect.BufferFlags provides a convenient way to interpret the flags. The method must return a memoryview object.
0 Examples
No examples for builtins/object.__buffer__.
See Also
No see-alsos for builtins/object.__buffer__
0 Notes
No notes for object.__buffer__