Serhiy Storchaka
e4d65e3aab
Issue #25447 : Copying the lru_cache() wrapper object now always works,
independedly from the type of the wrapped object (by returning the original
object unchanged).
10 years ago
Serhiy Storchaka
191321d11b
Issue #20440 : More use of Py_SETREF.
This patch is manually crafted and contains changes that couldn't be handled
automatically.
10 years ago
Serhiy Storchaka
4a1e70fc31
Issue #20440 : Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
10 years ago
Serhiy Storchaka
bc4ded9537
Issue #24103 : Fixed possible use after free in ElementTree.XMLPullParser.
10 years ago
Serhiy Storchaka
5a57ade58e
Issue #20440 : Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
10 years ago
Serhiy Storchaka
66c08d90f6
Issue #25902 : Fixed various refcount issues in ElementTree iteration.
10 years ago
Serhiy Storchaka
5c4064e8bd
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.
10 years ago
Victor Stinner
e847d7170d
Issue #25846 : Fix usage of Py_ARRAY_LENGTH() in win32_wchdir() (new try)
10 years ago
Victor Stinner
ed53782ed5
Issue #25846 : Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()
10 years ago
Martin Panter
f0c0318cdc
Issue #25845 : Drop redundant checks leftover from int to long conversion
10 years ago
Serhiy Storchaka
a29eb08fb9
Fixed possible leaks in ElementTree parser.
10 years ago
Serhiy Storchaka
d6a69d8ccb
Fixed possible leak in ElementTree.Element.iter().
10 years ago
Serhiy Storchaka
7efaf95934
Issue25814: Propagate all errors from custom XML parser handlers
in ElementTree.iterparse().
10 years ago
Martin Panter
49d3db92a4
Issue #25717 : Add comment explaining why errors are ignored
10 years ago
Martin Panter
0bb62b12a3
Issue #25717 : Tolerate fstat() failures in the FileIO constructor
This restores 3.4 behaviour, which was removed by revision 3b5279b5bfd1. The
fstat() call fails with ENOENT for a Virtual Box shared folder filesystem if
the file entry has been unlinked, e.g. for a temporary file.
10 years ago
Serhiy Storchaka
ca28eba3d3
Fixed reference leak when read truncated pickle.
10 years ago
Martin Panter
afdd51343c
Issue #25764 : Preserve subprocess fork exception when preexec_fn used
Also fix handling of failure to release the import lock.
10 years ago
Serhiy Storchaka
097a664f57
Issue #19687 : Fixed possible integer overflows in ElementTree.
Based on patch by Christian Heimes.
10 years ago
Serhiy Storchaka
a49de6be36
Issue #25725 : Fixed a reference leak in pickle.loads() when unpickling
invalid data including tuple instructions.
10 years ago
Serhiy Storchaka
e9b3074cf9
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
10 years ago
Serhiy Storchaka
b6aa5375d5
Issue #25691 : Fixed crash on deleting ElementTree.Element attributes.
10 years ago
Serhiy Storchaka
04d759b1e4
Issue #19687 : Fixed memory leak on failed Element slice assignment.
Added new tests for Element slice assignments.
10 years ago
Martin Panter
e99e97762c
Issue #25626 : Change zlib to accept Py_ssize_t and cap to UINT_MAX
The underlying zlib library stores sizes in “unsigned int”. The corresponding
Python parameters are all sizes of buffers filled in by zlib, so it is okay
to reduce higher values to the UINT_MAX internal cap. OverflowError is still
raised for sizes that do not fit in Py_ssize_t.
Sizes are now limited to Py_ssize_t rather than unsigned long, because Python
byte strings cannot be larger than Py_ssize_t. Previously this could result
in a SystemError on 32-bit platforms.
This resolves a regression in the gzip module when reading more than UINT_MAX
or LONG_MAX bytes in one call, introduced by revision 62723172412c.
10 years ago
Gregory P. Smith
d0a5b1c343
Fixes #23564 : Fix a partially broken sanity check in the _posixsubprocess
internals regarding how fds_to_pass were passed to the child. The bug
had no actual impact as subprocess.py already avoided it.
10 years ago
Benjamin Peterson
025a1fd990
rm trailing ws
10 years ago
Benjamin Peterson
f0c9038a36
fix possible memory lea k in _get_aia_uri ( closes #25578 )
10 years ago
Benjamin Peterson
806fb25405
fix build with older openssl ( #25569 )
10 years ago
Martin Panter
1bb651540e
Issue #25498 : Fix GC crash due to ctypes objects wrapping a memoryview
This was a regression caused by revision 1da9630e9b7f. Based on patch by
Eryksun.
10 years ago
Benjamin Peterson
a9dcdabccb
always set OP_NO_SSLv3 by default ( closes #25530 )
10 years ago
Benjamin Peterson
eda06c8f5e
fix memory leak in _get_crl_dp ( closes #25569 )
Patch started by Stéphane Wirtel.
10 years ago
Serhiy Storchaka
f51d715845
Issue #25523 : Further a-to-an corrections new in 3.5.
10 years ago
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
10 years ago
Martin Panter
d2ad5718ad
Issue #25523 : Further a-to-an corrections new in 3.5
10 years ago
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
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
or edited some other way to fix the grammar.
10 years ago
Serhiy Storchaka
45120f272b
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
(by returning the original object unchanged).
10 years ago
Victor Stinner
50856d5ae7
sys.setrecursionlimit() now raises RecursionError
Issue #25274 : sys.setrecursionlimit() now raises a RecursionError if the new
recursion limit is too low depending at the current recursion depth. Modify
also the "lower-water mark" formula to make it monotonic. This mark is used to
decide when the overflowed flag of the thread state is reset.
10 years ago
Victor Stinner
bc5b80bac1
Close #24784 : Fix compilation without thread support
Add "#ifdef WITH_THREAD" around cals to:
* PyGILState_Check()
* _PyImport_AcquireLock()
* _PyImport_ReleaseLock()
10 years ago
Benjamin Peterson
b397e3b526
add a missing comma ( closes #25371 )
10 years ago
Martin Panter
f264416093
Issue #22413 : Remove comment made out of date by Argument Clinic
10 years ago
Martin Panter
cfad54344f
Issue #22413 : Document newline effect on StringIO initializer and getvalue
Also add to comment in the C code.
10 years ago
Martin Panter
9955a373a8
Various minor typos in documentation and comments
10 years ago
Raymond Hettinger
848f2b595d
Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6
10 years ago
Berker Peksag
e2382c598c
Issue #25290 : Fix typo in csv.reader() docstring
Patch by Johannes Niediek.
10 years ago
Serhiy Storchaka
b9d98d532c
Issue #24483 : C implementation of functools.lru_cache() now calculates key's
hash only once.
10 years ago
Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
10 years ago
Alexander Belopolsky
365ba8f6c1
Closes issue #23600 : Wrong results from tzinfo.fromutc().
10 years ago
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
10 years ago
Alexander Belopolsky
c79447b267
Closes issue #23600 : Wrong results from tzinfo.fromutc().
10 years ago
Serhiy Storchaka
1138439376
Issue #25203 : Failed readline.set_completer_delims() no longer left the
module in inconsistent state.
10 years ago
Benjamin Peterson
3c0769d478
fix spacing
10 years ago