diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-06 18:48:21 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-06 18:48:21 (GMT) |
commit | 972ee13e037432497fa003d4a786b2342a38db94 (patch) | |
tree | ab6585ebe7d0da0e725da7bd6f61a4cf739192f2 /Modules/_io/_iomodule.h | |
parent | 6285774f06f44f04353801cc79fd2a5e67f884ec (diff) | |
download | cpython-972ee13e037432497fa003d4a786b2342a38db94.zip cpython-972ee13e037432497fa003d4a786b2342a38db94.tar.gz cpython-972ee13e037432497fa003d4a786b2342a38db94.tar.bz2 |
Issue #5506: BytesIO objects now have a getbuffer() method exporting a
view of their contents without duplicating them. The view is both readable
and writable.
Diffstat (limited to 'Modules/_io/_iomodule.h')
-rw-r--r-- | Modules/_io/_iomodule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_io/_iomodule.h b/Modules/_io/_iomodule.h index 2b8e8a1..925e4f2 100644 --- a/Modules/_io/_iomodule.h +++ b/Modules/_io/_iomodule.h @@ -169,3 +169,5 @@ extern PyObject *_PyIO_str_write; extern PyObject *_PyIO_empty_str; extern PyObject *_PyIO_empty_bytes; extern PyObject *_PyIO_zero; + +extern PyTypeObject _PyBytesIOBuffer_Type; |