Commit graph

8144 commits

Author SHA1 Message Date
Eli Bendersky
3c9850aad7 The get() and iter() are now able to accept keyword arguments.
In conformance with the documentation and the Python version.
Patch by Franck Michea.
2013-01-05 06:31:36 -08:00
Serhiy Storchaka
d8a0bac8f7 Issue #16674: random.getrandbits() is now 20-40% faster for small integers. 2013-01-04 12:18:35 +02:00
Christian Heimes
75e923fcf2 Issue #16847: Fixed improper use of _PyUnicode_CheckConsistency() in
non-pydebug builds. Several extension modules now compile cleanly when
assert()s are enabled in standard builds (-DDEBUG flag).
2013-01-03 09:22:41 +01:00
Ezio Melotti
37623ab5f1 #16009: JSON error messages now provide more information. Patch by Serhiy Storchaka. 2013-01-03 08:44:15 +02:00
Victor Stinner
fd53a5a011 (Merge 3.3) Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB. 2013-01-03 03:38:38 +01:00
Nadeem Vawda
ef408aea3d Issue #16828: Fix error incorrectly raised by bz2.compress(b'') and bz2.BZ2Compressor.compress(b'').
Initial patch by Martin Packman.
2013-01-02 23:13:53 +01:00
Serhiy Storchaka
404fa924c3 Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type. 2013-01-02 18:22:23 +02:00
Brian Curtin
9cc4321bf5 Backed out changeset 61bada808b34 2013-01-01 12:31:06 -06:00
Brian Curtin
e3d0b65118 Set st_dev on Windows as unsigned long to match its DWORD type, related to the change to fix #11939. 2013-01-01 12:21:35 -06:00
Richard Oudkerk
950fab07aa Issue #9586: Merge. 2013-01-01 17:40:58 +00:00
Eli Bendersky
a9bc1bf93b Make indentation consistent 2013-01-01 07:42:06 -08:00
Eli Bendersky
0485314305 Make indentation consistent and remove dead commented-out code. 2012-12-31 15:34:43 -08:00
Brian Curtin
87e63a273c st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines. 2012-12-31 11:59:48 -06:00
Serhiy Storchaka
ac1069387e Issue #16688: Fix backreferences did make case-insensitive regex fail on non-ASCII strings.
Patch by Matthew Barnett.
2012-12-29 23:41:08 +02:00
Brian Curtin
490b32a397 Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.
By setting the st_dev attribute, we can then remove some Windows-specific
code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py
so all platforms share the same implementation.
2012-12-26 07:03:03 -06:00
Andrew Svetlov
6d469ebbc8 rename MathcObject to match object in doctrings for re module (#16760) 2012-12-25 18:49:24 +02:00
Andrew Svetlov
3ba3a3ee56 Issue #15422: get rid of PyCFunction_New macro 2012-12-25 13:32:35 +02:00
Andrew Svetlov
77377574dc Issue #16443: Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
2012-12-23 20:00:58 +02:00
Stefan Krah
823359610f Merge 3.3. 2012-12-23 15:46:03 +01:00
Stefan Krah
a81ef640f1 Merge 3.3. 2012-12-22 23:08:42 +01:00
Stefan Krah
5383d2d2e4 Merge 3.3. 2012-12-22 14:57:16 +01:00
Stefan Krah
1ea891f8eb Merge 3.3. 2012-12-22 14:24:55 +01:00
Stefan Krah
8fba5365d5 Merge. 2012-12-21 23:27:13 +01:00
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