| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(GH-11175) (GH-11249)
(cherry picked from commit 842acaab1376c5c84fd5966bb6070e289880e1ca)
|
| |
|
|
|
|
|
|
|
|
|
| |
They can be exposed when some C API calls fail due to lack of
memory.
* Failed Py_BuildValue() could cause an assertion error in the
following TextIOWrapper.tell().
* initvalue could leak in StringIO.__getstate__() after failed
PyDict_Copy().
(cherry picked from commit fdb5a50ef34f7951c3b01eb77b1359725a9ad670)
|
| |
|
|
|
|
|
|
|
| |
(GH-10217)
_io.IncrementalNewlineDecoder's initializer possibly assigns out-of-range
value to the bitwise struct field.
(cherry picked from commit b08746bfdf64e55ce33516f2065fa2aa4f51be95)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
|
| |
|
|
|
|
|
| |
(GH-3918). (GH-8013)
(cherry picked from commit 23db935bcf258657682e66464bf8512def8af830)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
| |
(GH-3712) (#3779)
(cherry picked from commit d6238a76c655e0feb13478505220dc9049f1682f)
|
| | |
|
| |
|
|
|
| |
* Mark up ``--help`` to avoid generating an en dash
* Use forward slash in Unix command line with a dollar sign ($) prompt
|
| |
|
|
|
| |
the garbage collector is invoked in other thread.
Based on patch by Sebastian Cufre.
|
| |
|
|
|
|
| |
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.
|
| | |
|
| |
|
|
| |
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
|
| |
|
|
|
|
|
|
|
|
| |
Backported issues #19619: encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.
Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
|
| | |
|
| |
|
|
|
| |
corresponds _PyErr_ChainExceptions() in Python 3 to help porting patches
from Python 3.
|
| |
|
|
| |
Patch by Martin Panter.
|
| |
|
|
| |
error handler on 64-bit platforms. Patch by Yogesh Chaudhari.
|
| |
|
|
|
| |
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
|
| |
|
|
| |
no longer abort early when one of its write system calls is interrupted (EINTR).
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object. IOError is no
longer raised due to a read system call returning EINTR from within
these methods.
This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
|
| |
|
|
|
|
| |
errors correctly.
Patch by Serhiy Storchaka.
|
| |
|
|
| |
description from open().
|
| | |
|
| |
|
|
|
| |
exceptions raised by the implicit flush(). Also ensure that calling
close() several times is supported. Patch by Pascal Chambon.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
This is for consistency with imitation file objects like StringIO and BytesIO.
This commit also adds a few tests, where they were lacking for concerned
methods.
|
| |
|
|
|
|
|
| |
and other platforms, when using a non-gcc compiler. Patch by egreen.
In addition, I made explicit the signedness of all bitfields in the
IO library.
|
| |
|
|
| |
this affect text files opened with io.open(), and the print() function of py3k
|
| |
|