Commit Graph

76659 Commits

Author SHA1 Message Date
Charles-François Natali
b9a76e2920 Issue #16860: In tempfile, use O_CLOEXEC when available to set the
close-on-exec flag atomically.
2013-01-04 18:33:02 +01:00
Serhiy Storchaka
4e02538bf3 Issue #16856: Fix a segmentation fault from calling repr() on a dict with
a key whose repr raise an exception.
2013-01-04 12:40:35 +02:00
Serhiy Storchaka
6c83e739d7 Issue #16856: Fix a segmentation fault from calling repr() on a dict with
a key whose repr raise an exception.
2013-01-04 12:39:34 +02:00
Serhiy Storchaka
d8a0bac8f7 Issue #16674: random.getrandbits() is now 20-40% faster for small integers. 2013-01-04 12:18:35 +02:00
Benjamin Peterson
ca6142948e merge 3.3 2013-01-03 20:34:58 -08:00
Benjamin Peterson
bf064b3911 merge 3.2 2013-01-03 20:34:49 -08:00
Benjamin Peterson
d73f369f4c merge heads 2013-01-03 20:34:40 -08:00
Benjamin Peterson
0a2c4f55c4 drop email (closes #16857) 2013-01-03 20:34:19 -08: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
Christian Heimes
f402e922f3 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:21:55 +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
Victor Stinner
6f84659e5e (Merge 3.2) Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB. 2013-01-03 03:37:47 +01:00
Victor Stinner
c44057dfbd Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB 2013-01-03 03:33:21 +01:00
Victor Stinner
18aa4477d3 Close #16281: handle tailmatch() failure and remove useless comment
"honor direction and do a forward or backwards search": the runtime speed may
be different, but I consider that it doesn't really matter in practice. The
direction was never honored before: Python 2.7 uses memcmp() for the str type
for example.
2013-01-03 03:18:09 +01:00
Giampaolo Rodola'
549d465fe2 issue 10527: fix missing import 2013-01-03 02:54:27 +01:00
Victor Stinner
af9704a807 Null merge 3.3 2013-01-03 01:56:51 +01:00
Victor Stinner
269b3ce400 (Merge 3.2) Issue #16218, #16414, #16444: Backport FS_NONASCII,
TESTFN_UNDECODABLE, TESTFN_NONASCII of test.support from Python 3.4. Backport
tests on non-ASCII paths.
2013-01-03 01:56:38 +01:00
Victor Stinner
0af71aae2d Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
2013-01-03 01:50:30 +01:00
Victor Stinner
1f654740ab Null merge 3.3 (fix already applied to default, it was a backport) 2013-01-03 01:21:44 +01:00
Victor Stinner
7ae320d667 (Merge 3.2) Issue #16455: On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
2013-01-03 01:21:07 +01:00
Victor Stinner
20b654acb5 Issue #16455: On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
2013-01-03 01:08:58 +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
Nadeem Vawda
791e464f75 Correction: issue #16828 also affects BZ2Compressor.compress(). 2013-01-02 23:10:47 +01:00
Nadeem Vawda
57cb81d161 Issue #16828: Fix error incorrectly raised by bz2.compress('').
Initial patch by Martin Packman.
2013-01-02 23:05:56 +01:00
Nadeem Vawda
638fb9bbed Issue #16828: Fix error incorrectly raised by bz2.compress('').
Patch by Martin Packman.
2013-01-02 23:02:00 +01:00
Antoine Pitrou
90e4774558 Issue #16833: In http.client.HTTPConnection, do not concatenate the request headers and body when the payload exceeds 16 KB, since it can consume more memory for no benefit.
Patch by Benno Leslie.
2013-01-02 22:10:47 +01:00
Ezio Melotti
f422676423 #16747: merge with 3.3. 2013-01-02 22:29:57 +02:00
Ezio Melotti
407c2ac4f7 #16747: merge with 3.2. 2013-01-02 22:29:41 +02:00
Ezio Melotti
d581fff6f0 #16747: fix link to file objects in the glossary. 2013-01-02 22:29:09 +02:00
Ezio Melotti
454758224b #16748: merge with 3.3. 2013-01-02 21:22:58 +02:00
Ezio Melotti
22ebb2d6ef #16748: test_heapq now works with unittest test discovery. 2013-01-02 21:19:37 +02:00
Benjamin Peterson
d1ae518c64 merge heads 2013-01-02 12:23:32 -06:00
Benjamin Peterson
13a2707f95 merge 3.3 2013-01-02 12:23:05 -06:00
Benjamin Peterson
c527037207 add Tom Tromey to ACKS 2013-01-02 12:22:11 -06: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
Eli Bendersky
cc85a156ae Fix method name in documentation (__setstate__ --> __getstate__) 2013-01-02 05:55:17 -08:00
Eli Bendersky
a6d0dd5dc3 Fix method name in documentation (__setstate__ --> __getstate__) 2013-01-02 05:54:36 -08:00
Eli Bendersky
78f3ce577f Fix method name in documentation (__setstate__ --> __getstate__) 2013-01-02 05:53:59 -08:00
Serhiy Storchaka
805ae0d39d Fix incorrect grammar in sched documentation. 2013-01-02 12:32:10 +02:00
Serhiy Storchaka
75b936ec7f Fix incorrect grammar in sched documentation. 2013-01-02 12:31:26 +02:00
Serhiy Storchaka
a3eb8122ae Fix incorrect grammar in Misc/NEWS. 2013-01-02 12:11:57 +02:00
Serhiy Storchaka
89faf4fe23 Fix incorrect grammar in Misc/NEWS. 2013-01-02 12:05:38 +02:00
Serhiy Storchaka
ba1edf2f58 Fix incorrect grammar in Misc/NEWS. 2013-01-02 11:57:22 +02:00
Serhiy Storchaka
6b539a4ddc Merge heads 2013-01-02 10:41:08 +02:00
Serhiy Storchaka
08f4556524 Merge heads 2013-01-02 10:40:36 +02:00
Serhiy Storchaka
cc6b514a72 Merge heads 2013-01-02 10:38:45 +02:00
Serhiy Storchaka
32e258d877 Merge heads 2013-01-02 10:37:54 +02:00
Serhiy Storchaka
e48741a619 Merge heads 2013-01-02 10:32:13 +02:00
Łukasz Langa
2869b00d79 Null-merged Misc/NEWS change 2013-01-02 01:03:09 +01:00