Commit graph

7921 commits

Author SHA1 Message Date
Stefan Krah
f31b603558 Merge 3.3. 2012-12-21 23:23:25 +01:00
Mark Dickinson
4cd60175f1 Simplify random_seed to use _PyLong_AsByteArray. Closes issue #16496. 2012-12-21 21:52:49 +00:00
Kristjan Valur Jonsson
1724bb196a Merge with 3.3 : Don't DECREF the ctypes error_object without the GIL held. 2012-12-21 11:23:23 +00:00
Benjamin Peterson
4c05969fc4 merge 3.3 (#16597) 2012-12-20 11:55:16 -06:00
Andrew Svetlov
2606a6f197 Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
2012-12-19 14:33:35 +02:00
Andrew Svetlov
0832af6628 Issue #16717: get rid of socket.error, replace with OSError 2012-12-18 23:10:48 +02:00
Andrew Svetlov
a191959849 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +02:00
Stefan Krah
8e47b8767b Merge 3.3. 2012-12-16 21:11:35 +01:00
Stefan Krah
8031d0dfd4 Merge 3.3. 2012-12-15 22:36:49 +01:00
Benjamin Peterson
6a020e8065 merge 3.3 2012-12-15 15:44:18 -05:00
Antoine Pitrou
09bb89b8cf Issue #16488: epoll() objects now support the with statement.
Patch by Serhiy Storchaka.
2012-12-15 21:14:21 +01:00
Andrew Svetlov
1a714750cf Remove compile warnings for _testimportmodule 2012-12-15 18:16:47 +02:00
Andrew Svetlov
ef9a43b2c9 Rename test module names for #16421 to don't clash with other tests. 2012-12-15 17:22:59 +02:00
Ezio Melotti
752f5dd0f7 #16681: merge with 3.3. 2012-12-14 20:14:17 +02:00
Andrew Svetlov
6b2cbeba58 Issue #16421: allow to load multiple modules from the same shared object.
Patch by Václav Šmilauer.
2012-12-14 17:04:59 +02:00
Benjamin Peterson
57b667261c expose TCP_FASTOPEN and MSG_FASTOPEN 2012-12-12 22:24:47 -05:00
Gregory P. Smith
370bc2f7ee Code style fixup: No need for double ((parenthesis)) and use {} on an if else. 2012-12-10 20:22:55 -08:00
Gregory P. Smith
60112ae319 1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
Found by Clang trunk's Undefined-Behavior Sanitizer.  [more to come]
2012-12-10 17:45:16 -08:00
Antoine Pitrou
dfe6ad7cc5 Issue #16628: Fix a memory leak in ctypes.resize(). 2012-12-08 11:07:46 +01:00
Benjamin Peterson
26e5335a46 merge 3.3 (#16585) 2012-12-02 11:21:02 -05:00
Benjamin Peterson
3d490d4eff merge 3.3 2012-12-02 10:53:48 -05:00
Antoine Pitrou
d8d1a0ab78 Issue #10182: The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
2012-12-02 12:55:12 +01:00
Antoine Pitrou
cbb028466b Issue #16590: remove obsolete compatibility code from the _json module.
Patch by Serhiy Storchaka.
2012-12-01 19:34:16 +01:00
Antoine Pitrou
ab56710989 Issue #12848: The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
2012-11-24 20:42:59 +01:00
Ezio Melotti
8b9a8f3c98 #16306: merge with 3.3. 2012-11-23 19:01:42 +02:00
Victor Stinner
e262377cab Issue #16416: OS data are now always encoded/decoded to/from
UTF-8/surrogateescape, instead of the locale encoding (which may be ASCII if no
locale environment variable is set), to avoid inconsistencies with
os.fsencode() and os.fsdecode() functions which are already using
UTF-8/surrogateescape.
2012-11-12 23:04:02 +01:00
Nadeem Vawda
cba149761a Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
2012-11-11 14:20:09 +01:00
Gregory P. Smith
8d07c264e4 Raise our own SubprocessError rather than a RuntimeError in when dealing with
odd rare errors coming from the subprocess module.
2012-11-10 23:53:47 -08:00
Gregory P. Smith
0b83224c0d Fixes issue #9535: Fix pending signals that have been received but not
yet handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:34:41 -08:00
Nadeem Vawda
9c40022e38 Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
2012-11-11 03:19:49 +01:00
Nadeem Vawda
9ea64e38b5 Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.
2012-11-11 02:24:37 +01:00
Stefan Krah
b8f09d3791 Merge 3.3. 2012-11-10 23:31:22 +01:00
Stefan Krah
4cb103ee39 Merge 3.3. 2012-11-08 11:19:55 +01:00
Stefan Krah
d2d3aa2038 Merge 3.3. 2012-11-07 23:54:37 +01:00
Stefan Krah
fc55bb1cc5 Merge 3.3. 2012-11-07 23:20:10 +01:00
Victor Stinner
4e7d2d481a Issue #15478: Oops, fix regression in os.open() on Windows
os.open() uses _wopen() which sets errno, not the Windows error code.
2012-11-05 01:20:58 +01:00
Nadeem Vawda
ec8c8ae7ae Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
2012-11-05 00:40:00 +01:00
Andrew Svetlov
69032c81aa Issue #16309: Make PYTHONPATH= behavior the same as if PYTHONPATH not set at all.
Thanks to Armin Rigo and Alexey Kachayev.
2012-11-03 13:52:58 +02:00
Stefan Krah
43c336b107 Merge 3.3. 2012-11-02 14:49:02 +01:00
Antoine Pitrou
787fbe9d6b Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
2012-11-01 20:16:07 +01:00
Antoine Pitrou
53d36b6912 Issue #16228: Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
2012-11-01 20:03:30 +01:00
Victor Stinner
afe1706457 Issue #15478: Use source filename in OSError, not destination filename
And other fixes for Windows:

 * rename, replace and link require arguments of the same type on Windows
 * readlink only supports unicode filenames on Windows
 * os.open() specifies the filename on OSError
2012-10-31 22:47:43 +01:00
Victor Stinner
b024e84597 Issue #15478: Use path_error() in more posix functions, especially in Windows
implementation
2012-10-31 22:24:06 +01:00
Andrew Svetlov
4c668ed528 Merge: fix docstring for deque ctor to mark iterable parameter optional 2012-10-31 11:51:39 +02:00
Benjamin Peterson
7ff2094bc7 merge 3.3 (#16369) 2012-10-30 23:31:12 -04:00
Victor Stinner
7a6d7cf3db Issue #9566: Use the right type to fix a compiler warnings on Win64 2012-10-31 00:37:41 +01:00
Victor Stinner
56cb12542d Issue #9566: Explicit downcast to fix compiler warnings on Win64 2012-10-31 00:33:57 +01:00
Antoine Pitrou
d4156c1693 Issue #16351: New function gc.get_stats() returns per-generation collection statistics. 2012-10-30 22:43:19 +01:00
Andrew Svetlov
d2217a83d4 Issue #15721: apply PEP 384 Refactoring to tkinter module. 2012-10-30 22:49:16 +02:00
Victor Stinner
b9e2d3f884 Issue #16330: Fix compilation on Windows 2012-10-30 02:30:31 +01:00