Benjamin Peterson
dedac52731
prevent double free in cleanup code ( #17968 )
13 years ago
Antoine Pitrou
7f987398b7
Issue #17968 : Fix memory leak in os.listxattr().
13 years ago
Antoine Pitrou
04e70d19e7
Issue #17807 : Generators can now be finalized even when they are part of a reference cycle.
13 years ago
Antoine Pitrou
070cb3c9be
Issue #1545463 : At shutdown, defer finalization of codec modules so that stderr remains usable.
(should fix Windows buildbot failures on test_gc)
13 years ago
Ezio Melotti
babc8227cc
#16523 : improve attrgetter/itemgetter/methodcaller documentation.
13 years ago
Victor Stinner
70792d268e
Fix compiler warnings: explicit cast to int in sha256/sha512 modules
13 years ago
Victor Stinner
e8289618bf
zlib: Explicit cast to fix a compiler warning
13 years ago
Victor Stinner
f2b9a340ef
audioop: explicit cast to fix a compiler warning
13 years ago
Antoine Pitrou
a7f7deb6ed
Issue #17289 : The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
Initial patch by Bradley Froehle.
13 years ago
Charles-Francois Natali
002a77d2f7
Issue #12181 : select module: Fix struct kevent definition on OpenBSD 64-bit
platforms. Patch by Federico Schwindt.
13 years ago
Antoine Pitrou
5f454a07a0
Issue #1545463 : Global variables caught in reference cycles are now garbage-collected at shutdown.
13 years ago
Antoine Pitrou
c8c952ce2a
Issue #14173 : Avoid crashing when reading a signal handler during interpreter shutdown.
13 years ago
Antoine Pitrou
1a6cb30a34
Issue #5845 : Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
(original patch by Éric Araujo)
13 years ago
Gregory P. Smith
910bfb7beb
This local change was lost during the fixing of issue17192 to update
libffi to 3.0.13. (i'm not sure if it is needed anymore but see
issue 10309 for details which makes no mention of upstream; this
change is already in 3.3 and 3.4 but may need reapplying to 2.7
as done here)
13 years ago
Gregory P. Smith
5dc268ed26
* Fix remaining bits of issue 17192 for 3.3 - these changes
were missing from a messed up merge during the libffi 3.0.13
import. the diffs from upstream libffi 3.0.13 are now small.
13 years ago
Gregory P. Smith
933059710c
* Fix issue 17192 for 3.2 - reapply the issue11729 patch that was undone
in the merge fun from upstream which already had it in 3.0.13.
* Add the missing update to libffi.info.
13 years ago
Serhiy Storchaka
a9217a42e6
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
13 years ago
Serhiy Storchaka
d160b12292
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
13 years ago
Antoine Pitrou
9f14681959
Issue #17804 : New function ``struct.iter_unpack`` allows for streaming struct unpacking.
13 years ago
Eli Bendersky
45f3d2fff0
Revert c9674421d78e, leaving an additional comment
13 years ago
Eli Bendersky
1859fe80c4
Simplify the code of get_attrib_from_keywords somewhat.
13 years ago
Eli Bendersky
d4cb4b7451
Issue #17736 : fix misleading comment in _elementtree.c
Patch by Jonas Wagner
13 years ago
Alexandre Vassalotti
637c7c475a
Fix reference leak in _pickle.
13 years ago
Antoine Pitrou
a85017fbe3
Issue #16694 : Add a pure Python implementation of the operator module.
Patch by Zachary Ware.
13 years ago
Eli Bendersky
ddcc6798f6
Remove useless #define and #ifdefs
13 years ago
Eli Bendersky
bf05df2396
Make license notices more consistent and remove old changelog.
Also remove unused macro.
13 years ago
Victor Stinner
8f674ccd64
Close #17694 : Add minimum length to _PyUnicodeWriter
* Add also min_char attribute to _PyUnicodeWriter structure (currently unused)
* _PyUnicodeWriter_Init() has no more argument (except the writer itself):
min_length and overallocate must be set explicitly
* In error handlers, only enable overallocation if the replacement string
is longer than 1 character
* CJK decoders don't use overallocation anymore
* Set min_length, instead of preallocating memory using
_PyUnicodeWriter_Prepare(), in many decoders
* _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
13 years ago
Antoine Pitrou
cf8a1e51ec
- Issue #17782 : Fix undefined behaviour on platforms where ``struct timespec``'s "tv_nsec" member is not a C long.
13 years ago
Alexandre Vassalotti
7c5e094cbf
Make C and Python implementations of pickle load STRING opcodes the same way.
The C version tried to remove trailing whitespace between the last quote and
the newline character. I am not sure why it had this because pickle never
generated such pickles---for this to happen repr(some_string) would need to
return trailing whitespace. It was maybe there to make it easier for people
to write pickles in text editors. Anyhow, the Python version doesn't do this
so there is no point keeping this around anymore.
Also, I've changed the exception raised when a bad pickle is encountered.
Again this unlikely to make much difference to anyone though it does make
testing slightly nicer for us.
13 years ago
Benjamin Peterson
51ce29c530
remove pointless code ( closes #17738 )
13 years ago
Antoine Pitrou
3034efdd29
Issue #17710 : Fix pickle raising a SystemError on bogus input.
13 years ago
Victor Stinner
322cc7438c
Issue #17693 : Fix memory/reference leaks
13 years ago
Alexandre Vassalotti
cc7571727f
Style cleanups for pickle.py and _pickle.
13 years ago
Alexandre Vassalotti
00d83f2d05
Clean up error messages raised by save_reduce in _pickle.
13 years ago
Victor Stinner
d949126995
Issue #17693 : CJK encoders now use the new Unicode API (PEP 393)
13 years ago
Serhiy Storchaka
4bb17348f5
Issue #17016 : Get rid of possible pointer wraparounds and integer overflows
in the re module. Patch by Nickolai Zeldovich.
13 years ago
Victor Stinner
a0dd0213cc
Close #17693 : Rewrite CJK decoders to use the _PyUnicodeWriter API instead of
the legacy Py_UNICODE API.
Add also a new _PyUnicodeWriter_WriteChar() function.
13 years ago
Antoine Pitrou
50b24d0d7c
Fix a crash when setting a servername callback on a SSL server socket and the client doesn't send a server name.
Patch by Kazuhiro Yoshida.
(originally issue #8109 )
13 years ago
Victor Stinner
7d36e4f074
Close #14439 : Python now prints the traceback on runpy failure at startup.
13 years ago
Antoine Pitrou
4b7b0f06b4
gibibytes (Arfrever)
13 years ago
Antoine Pitrou
299978dfe3
Issue #15596 : Faster pickling of unicode strings.
13 years ago
Serhiy Storchaka
278d03bd66
Revert a premature patch for issue #14010 (changeset aaaf36026511).
13 years ago
Serhiy Storchaka
e8f706eda7
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
13 years ago
Antoine Pitrou
7faf70512a
Issue #17591 : Use lowercase filenames when including Windows header files.
Patch by Roumen Petrov.
13 years ago
Antoine Pitrou
ce852cb8b9
Fix comment about the OpenSSL version in which SNI version was introduced.
13 years ago
Antoine Pitrou
edbc18e9d0
Improve set_servername_callback docstring.
13 years ago
Antoine Pitrou
a596338bb8
Fix previous fix (the cause was actually a misplaced #endif, or so it seems)
13 years ago
Antoine Pitrou
41f8c4f5e4
Further compiling fixes (issue #17581 )
13 years ago
Antoine Pitrou
912fbff105
Issue #17581 : try to fix building on old OpenSSL versions
13 years ago
Antoine Pitrou
2463e5fee4
Issue #16692 : The ssl module now supports TLS 1.1 and TLS 1.2. Initial patch by Michele Orrù.
13 years ago