History log of /external/python/cpython3/Modules/_io/bytesio.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c249221dfda0bf05c6fab37fab9c0eb4f23c870c 28-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #20699: Merge io bytes-like fixes from 3.5
6bb91f3b6e51352f91bcf785d3f6fe160ed2cd85 28-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #20699: Document that “io” methods accept bytes-like objects

This matches the usage of ZipFile and BufferedWriter. This still requires
return values to be bytes() objects.

Also document and test that the write() methods should only access their
argument before they return.
/external/python/cpython3/Modules/_io/bytesio.c
8b04a945eff25ee66746d717b060c1b7844808c9 16-Apr-2016 Martin Panter <vadmium+py@gmail.com> Merge typo fixes from 3.5
119e502277d104286620806ef130e3c0d4f439f0 16-Apr-2016 Martin Panter <vadmium+py@gmail.com> Fix typos in code comments and documentation
/external/python/cpython3/Modules/_io/bytesio.c
f01e408c1688a207eba18444da8c151c872fba59 10-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
ec39756960def5fdd8cb0ae191429f2f8e229f55 06-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #22570: Renamed Py_SETREF to Py_XSETREF.
48842714b948fa239392ddd7e207151d5fcb8bc7 06-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #22570: Renamed Py_SETREF to Py_XSETREF.
/external/python/cpython3/Modules/_io/bytesio.c
1ed017ae92b32b27186d5793f6e58c526f350a2b 27-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR.
Old code is correct, but with Py_SETREF and Py_CLEAR it can be cleaner.
This patch doesn't fix bugs and hence there is no need to backport it.
/external/python/cpython3/Modules/_io/bytesio.c
5a57ade58ec5bee85db41b8ce1340ff077781b65 24-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
/external/python/cpython3/Modules/_io/bytesio.c
5c4064e8bd199d70eefd7ec24766957c22f1b8e8 19-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
/external/python/cpython3/Modules/_io/bytesio.c
4e63f7a2b4e3602c420c8ae59a16020b14f8ee13 04-Sep-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24989: Fixed buffer overread in BytesIO.readline() if a position is
set beyond size. Based on patch by John Leitch.
/external/python/cpython3/Modules/_io/bytesio.c
dbfdc380df615fe7e85107ff3954b8fff3ce7741 04-May-2015 Larry Hastings <larry@hastings.org> Issue #24001: Argument Clinic converters now use accept={type}
instead of types={'type'} to specify the types the converter accepts.
/external/python/cpython3/Modules/_io/bytesio.c
f24131ff3125e59ca779d0e2fcec4967d50f950c 16-Apr-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20175: Converted the _io module to Argument Clinic.
/external/python/cpython3/Modules/_io/bytesio.c
5056769b36901598b9eb3900a44839284e782b14 10-Apr-2015 Serhiy Storchaka <storchaka@gmail.com> Replaced "string" with "bytes object" in docstrings of binary I/O objects.
b817b77a8c4c6c3031c48b2ff95f677e9f1f0b94 10-Apr-2015 Serhiy Storchaka <storchaka@gmail.com> Replaced "string" with "bytes object" in docstrings of binary I/O objects.
/external/python/cpython3/Modules/_io/bytesio.c
650c1e818d7bbb5d51501051fca773b3b8ea6bf3 03-Feb-2015 Stefan Krah <skrah@bytereef.org> Issue #14203: Remove obsolete support for view==NULL in bytesiobuf_getbuffer()
and array_buffer_getbuf().
/external/python/cpython3/Modules/_io/bytesio.c
38c30e6c8e34241a1ea226fdd4ff74be6a8ee846 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #15381: Fixed a bug in BytesIO.write().
It was expected that string_size == PyBytes_GET_SIZE(buf) if the buffer is
shared, but truncate() and __setstate__() can set string_size without
unsharing the buffer.
/external/python/cpython3/Modules/_io/bytesio.c
b9765eec5cbc149120acb50646256cffde94d74f 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #15381: Try to fix refcount bug. Empty and 1-byte buffers are always shared.
/external/python/cpython3/Modules/_io/bytesio.c
87d0b45485e1042b0eae8aedf98fa3ebb29846b8 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #15381: Optimized io.BytesIO to make less allocations and copyings.
/external/python/cpython3/Modules/_io/bytesio.c
32ca3dcb97a75c05dc2b90c88bbf82a541c57c61 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23099: Closing io.BytesIO with exported buffer is rejected now to
prevent corrupting exported buffer.
c057c3859c68f2e86c7a492ae8f8b4b3a3b136c8 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23099: Closing io.BytesIO with exported buffer is rejected now to
prevent corrupting exported buffer.
/external/python/cpython3/Modules/_io/bytesio.c
3dd3e26680110b3eeadedc9c8457dfe1db2b913c 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
and PyObject_AsWriteBuffer().
4fdb68491e8b2d044c9173babf625bbb815c39d1 03-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
and PyObject_AsWriteBuffer().
/external/python/cpython3/Modules/_io/bytesio.c
706768c687f5413c909168736506aaf4fb4861c0 16-Aug-2014 Victor Stinner <victor.stinner@gmail.com> Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
/external/python/cpython3/Modules/_io/bytesio.c
d7728cafc585b554d347250afd923740432dac5a 14-Aug-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #15381: Optimized line reading in io.BytesIO.
/external/python/cpython3/Modules/_io/bytesio.c
cc66a73d27ba8b3051586221f96effef67c3bb3a 30-Jul-2014 Antoine Pitrou <solipsis@pitrou.net> Issue #22003: When initialized from a bytes object, io.BytesIO() now
defers making a copy until it is mutated, improving performance and
memory use on some use cases.

Patch by David Wilson.
/external/python/cpython3/Modules/_io/bytesio.c
ea94ba45fa845e5792020ffb5bb70f88f8642366 08-Sep-2012 Stefan Krah <skrah@bytereef.org> Merge 3.2.
96efdd422cef75f70770107847b1a97e7e524e4c 08-Sep-2012 Stefan Krah <skrah@bytereef.org> Issue #15868: Fix refleak in bytesio.c (Coverity #715365).
/external/python/cpython3/Modules/_io/bytesio.c
11946fbe804d99d26724e65dcb061cda6666c4e9 05-Sep-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15841: The readable(), writable() and seekable() methods of BytesIO
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
1d857453b7065dafdc34a72c1bbb2a993782b383 05-Sep-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15841: The readable(), writable() and seekable() methods of BytesIO
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
/external/python/cpython3/Modules/_io/bytesio.c
57911f6c1a84dd0eb050908f81d6e60d38054271 30-Jul-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15489: Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka.
8f328d0c1d86096b3d4e5f1c1ac497663e197a0d 30-Jul-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15489: Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka.
/external/python/cpython3/Modules/_io/bytesio.c
b94767ff44edf5d461d7cb1c8eb5160f83886358 22-Feb-2011 Brett Cannon <bcannon@gmail.com> Issue #8914: fix various warnings from the Clang static analyzer v254.
/external/python/cpython3/Modules/_io/bytesio.c
fa73555cfc414baff62ed41e0c8c2c85b167495a 20-Nov-2010 Benjamin Peterson <benjamin@python.org> correct logic when pos is after the string #10467
/external/python/cpython3/Modules/_io/bytesio.c
972ee13e037432497fa003d4a786b2342a38db94 06-Sep-2010 Antoine Pitrou <solipsis@pitrou.net> 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.
/external/python/cpython3/Modules/_io/bytesio.c
d5c3f6c839403605d0e2c481d9b7d4e7b9aa4694 02-Sep-2010 Antoine Pitrou <solipsis@pitrou.net> BytesIO.getvalue() and StringIO.getvalue() are METH_NOARGS.
/external/python/cpython3/Modules/_io/bytesio.c
6be8876623ffab3f2d1e4af46e7ce169d84b35a6 03-May-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 80720 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r80720 | antoine.pitrou | 2010-05-03 18:25:33 +0200 (lun., 03 mai 2010) | 5 lines

Issue #7865: The close() method of :mod:`io` objects should not swallow
exceptions raised by the implicit flush(). Also ensure that calling
close() several times is supported. Patch by Pascal Chambon.
........
/external/python/cpython3/Modules/_io/bytesio.c
905a2ffe3e5445925a669ab433521ddb66cf1043 31-Jan-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 77890 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r77890 | antoine.pitrou | 2010-01-31 23:26:04 +0100 (dim., 31 janv. 2010) | 7 lines

- Issue #6939: Fix file I/O objects in the `io` module to keep the original
file position when calling `truncate()`. It would previously change the
file position to the given argument, which goes against the tradition of
ftruncate() and other truncation APIs. Patch by Pascal Chambon.
........
/external/python/cpython3/Modules/_io/bytesio.c
ba5c74329dadfb685bb921407916ffbb2efb78cc 05-Aug-2009 Alexandre Vassalotti <alexandre@peadrop.com> Issue 5449: Fix io.BytesIO to not accept arbitrary keywords

Patch contributed by Erick Tryzelaar.
/external/python/cpython3/Modules/_io/bytesio.c
cf76e1ac927cdc14ee321a363e161be24bfff059 22-Jul-2009 Alexandre Vassalotti <alexandre@peadrop.com> Issue #6218: Make io.BytesIO and io.StringIO picklable.
/external/python/cpython3/Modules/_io/bytesio.c
fc477048e1dee78a1b4376584cac052be1b4752d 22-Jul-2009 Alexandre Vassalotti <alexandre@peadrop.com> Issue #6242: Fix deallocator of io.StringIO and io.BytesIO.
/external/python/cpython3/Modules/_io/bytesio.c
680bf1afe89c864d6cf04a37ce1b3b2c1d60072f 12-Jun-2009 Benjamin Peterson <benjamin@python.org> move to a naming scheme with all lowercase and underscores
/external/python/cpython3/Modules/_io/bytesio.c
1fea321502631184f8c3f1580159e3f2bcc5ee4b 19-Apr-2009 Benjamin Peterson <benjamin@python.org> use NULL for the ends of tables
/external/python/cpython3/Modules/_io/bytesio.c
8d8d6300034864d9975aedfd0560db8b7bace00f 04-Apr-2009 Alexandre Vassalotti <alexandre@peadrop.com> Issue 5682: Move _io module into its own subdirectory.

Reviewed by: Antoine Pitrou
/external/python/cpython3/Modules/_io/bytesio.c