]> granicus.if.org Git - python/commit
Issue #20699: Document that “io” methods should accept memoryview
authorMartin Panter <vadmium+py@gmail.com>
Fri, 3 Jun 2016 05:59:20 +0000 (05:59 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 3 Jun 2016 05:59:20 +0000 (05:59 +0000)
commitc9813d83f78c1eed12aebc286d6df0e9a5d90d04
treead5967e5bcc619be26198efbf78502578e5da615
parent9aabaccb7632a35da37b3d9c58b6ee0aab3ac547
Issue #20699: Document that “io” methods should accept memoryview

This matches the usage by BufferedReader, BufferedWriter, etc. Also document
and test that the write() methods should only access their argument before
they return.
Doc/library/io.rst
Lib/_pyio.py
Lib/test/test_io.py
Lib/test/test_memoryio.py
Modules/_io/bufferedio.c
Modules/_io/bytesio.c
Modules/_io/fileio.c
Modules/_io/iobase.c