Stefan Krah
6d554b0428
Merge 3.3.
2013-01-16 13:00:11 +01:00
Stefan Krah
59a4a93f43
Issue #16422 : Use strings for rounding mode constants for better readability
...
and pickling compatibility.
2013-01-16 12:58:59 +01:00
Serhiy Storchaka
fb3c6286a6
Issue #15861 : tkinter now correctly works with lists and tuples containing
...
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 17:59:53 +02:00
Serhiy Storchaka
1e2b7ee3e8
Issue #15861 : tkinter now correctly works with lists and tuples containing
...
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 17:58:14 +02:00
Serhiy Storchaka
b139652366
Issue #15861 : tkinter now correctly works with lists and tuples containing
...
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 17:56:08 +02:00
Serhiy Storchaka
55e2cb497b
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
...
in any mapping, not only in an unicode string.
2013-01-15 15:30:04 +02:00
Serhiy Storchaka
45d16d9924
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
...
in any mapping, not only in an unicode string.
2013-01-15 15:01:20 +02:00
Serhiy Storchaka
4fb8caee87
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
...
in any mapping, not only in an unicode string.
2013-01-15 14:43:21 +02:00
Richard Oudkerk
afe4126fd3
Dummy merge
2013-01-15 01:04:03 +00:00
Richard Oudkerk
ad1d5f908a
Issue #10527 : Use poll() instead of select() for multiprocessing pipes
2013-01-15 01:01:01 +00:00
Serhiy Storchaka
5f1cfbb5c0
Issue #9720 : zipfile now writes correct local headers for files larger than 4 GiB.
2013-01-15 00:41:43 +02:00
Serhiy Storchaka
64bfcc4c22
Issue #9720 : zipfile now writes correct local headers for files larger than 4 GiB.
2013-01-15 00:38:17 +02:00
Serhiy Storchaka
182d7cd531
Issue #9720 : zipfile now writes correct local headers for files larger than 4 GiB.
2013-01-15 00:31:39 +02:00
Andrew Svetlov
1bd7f02c81
Issue #5066 : Update IDLE docs
...
Patch by Todd Rovito
2013-01-14 19:27:36 +02:00
Richard Oudkerk
0ee84e04da
Issue #16955 : Fix the poll() method for multiprocessing's socket
...
connections on Windows.
2013-01-13 22:52:13 +00:00
Richard Oudkerk
ed9e06cb21
Issue #16955 : Fix the poll() method for multiprocessing's socket
...
connections on Windows.
2013-01-13 22:46:48 +00:00
Eli Bendersky
a9a2ef5550
Close #14377 : Add a new parameter to ElementTree.write and some module-level
...
serialization functions - short_empty_elements. It controls how elements
without contents are emitted.
Patch by Serhiy Storchaka. Feature initially proposed by Ariel Poliak.
2013-01-13 06:04:43 -08:00
Antoine Pitrou
e9bb4733d9
Issue #16923 : Fix ResourceWarnings in test_ssl.
2013-01-12 21:56:56 +01:00
Antoine Pitrou
e1ceb50cdf
Issue #16923 : Fix ResourceWarnings in test_ssl.
2013-01-12 21:54:44 +01:00
Antoine Pitrou
1e37e9efa9
SSLContext.load_dh_params() now properly closes the input file.
2013-01-12 21:44:33 +01:00
Antoine Pitrou
457a2292ca
SSLContext.load_dh_params() now properly closes the input file.
2013-01-12 21:43:45 +01:00
Serhiy Storchaka
52f80a7041
Issue #16829 : IDLE printing no longer fails if there are spaces or other
...
special characters in the file path.
2013-01-12 18:17:24 +02:00
Serhiy Storchaka
69db587f86
Issue #16829 : IDLE printing no longer fails if there are spaces or other
...
special characters in the file path.
2013-01-12 18:16:18 +02:00
Serhiy Storchaka
74fe9f307d
Issue #16829 : IDLE printing no longer fails if there are spaces or other
...
special characters in the file path.
2013-01-12 18:13:24 +02:00
Eli Bendersky
eb2884a875
Close #15442 : Expand the list of default directories ignored by filecmp.dircmp and expose it as a module attribute
2013-01-12 06:13:32 -08:00
Charles-François Natali
a6ebb2d7fb
Issue #16876 : Revert be8e6b81284e, which wasn't thread-safe: wait until a
...
solution is found for poll().
2013-01-12 12:31:00 +01:00
Raymond Hettinger
464d89b3ce
Issue #16398 : Optimize deque.rotate()
2013-01-11 22:29:50 -08:00
Brett Cannon
569ff4fbbc
Issue #15031 : Refactor some code in importlib pertaining to validating
...
and compiling bytecode.
Thanks to Ronan Lamy for pointing the redundancy and taking an initial
stab at the refactor (as did Nick Coghlan).
2013-01-11 18:09:25 -05:00
Brett Cannon
c57f9f9419
Merge from 3.3 for fix for issue #16730
2013-01-11 15:42:30 -05:00
Brett Cannon
a9976b3e32
Issue #16730 : Don't raise an exception in
...
importlib.machinery.FileFinder when the directory has become
unreadable or a file. This brings semantics in line with Python 3.2
import.
Reported and diagnosed by David Pritchard.
2013-01-11 15:40:12 -05:00
Serhiy Storchaka
9942e5a9cf
Issue #15539 : Fix a number of bugs in Tools/scripts/pindent.py.
...
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
2013-01-11 12:12:32 +02:00
Serhiy Storchaka
40ce22edb5
Issue #15539 : Fix a number of bugs in Tools/scripts/pindent.py.
...
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
2013-01-11 12:10:57 +02:00
Serhiy Storchaka
6840a54ad4
Issue #15539 : Fix a number of bugs in Tools/scripts/pindent.py.
...
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
2013-01-11 12:04:23 +02:00
Ezio Melotti
ee46b6c5c4
#13899 : merge with 3.3.
2013-01-11 08:44:25 +02:00
Ezio Melotti
adfbb8e8ec
#13899 : merge with 3.2.
2013-01-11 08:43:53 +02:00
Ezio Melotti
fe8e6e7414
#13899 : \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett.
2013-01-11 08:32:01 +02:00
Ezio Melotti
2645936e27
#16925 : merge with 3.3.
2013-01-11 06:32:06 +02:00
Ezio Melotti
dc1fa80b6c
#16925 : test_configparser now works with unittest test discovery. Patch by Zachary Ware.
2013-01-11 06:30:57 +02:00
Ezio Melotti
aabd0b0312
#16918 : merge with 3.3.
2013-01-11 06:05:51 +02:00
Ezio Melotti
5d3dba0d27
#16918 : test_codecs now works with unittest test discovery. Patch by Zachary Ware.
2013-01-11 06:02:07 +02:00
Ezio Melotti
45d5de1500
#16919 : merge with 3.3.
2013-01-11 05:20:01 +02:00
Ezio Melotti
90bbbd1164
#16919 : test_crypt now works with unittest test discovery. Patch by Zachary Ware.
2013-01-11 05:18:45 +02:00
Benjamin Peterson
f86b3c394c
merge 3.3 ( #16900 )
2013-01-10 14:16:42 -06:00
Benjamin Peterson
36f7b97787
remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening ( closes #16900 )
2013-01-10 14:16:20 -06:00
R David Murray
96983afd0c
merge #15545 : fix sqlite3.iterdump regression on unsortable row_factory objects.
...
The fix for issue 9750 introduced a regression by sorting the row objects
returned by fetchall. But if a row_factory such as sqlite3.Row is used, the
rows may not be sortable (in Python3), which leads to an exception. The
sorting is still a nice idea, so the patch moves the sort into the sql.
Fix and test by Peter Otten.
2013-01-10 11:15:57 -05:00
R David Murray
7bd04867e5
merge #15545 : fix sqlite3.iterdump regression on unsortable row_factory objects.
...
The fix for issue 9750 introduced a regression by sorting the row objects
returned by fetchall. But if a row_factory such as sqlite3.Row is used, the
rows may not be sortable (in Python3), which leads to an exception. The
sorting is still a nice idea, so the patch moves the sort into the sql.
Fix and test by Peter Otten.
2013-01-10 11:13:34 -05:00
R David Murray
b52312923b
#15545 : fix sqlite3.iterdump regression on unsortable row_factory objects.
...
The fix for issue 9750 introduced a regression by sorting the row objects
returned by fetchall. But if a row_factory such as sqlite3.Row is used, the
rows may not be sortable (in Python3), which leads to an exception. The
sorting is still a nice idea, so the patch moves the sort into the sql.
Fix and test by Peter Otten.
2013-01-10 11:04:09 -05:00
Eli Bendersky
8eee081d40
Update Misc/NEWS for issue #16076
2013-01-10 06:35:18 -08:00
Eli Bendersky
e6174ca85e
Issue #16913 : Fix Element.itertext()'s handling of text with XML entities.
...
Patch by Serhiy Storchaka
2013-01-10 06:27:53 -08:00
Ezio Melotti
5b1acc0dff
#16910 : merge with 3.3.
2013-01-10 07:46:29 +02:00
Ezio Melotti
0dceb560b6
#16910 : test_bytes, test_unicode, and test_userstring now work with unittest test discovery. Patch by Zachary Ware.
2013-01-10 07:43:26 +02:00
Ezio Melotti
47b988609f
#16905 : merge with 3.3.
2013-01-10 06:53:34 +02:00
Ezio Melotti
2688e81064
#16905 : test_bufio now works with unittest test discovery. Initial patch by Berker Peksag.
2013-01-10 06:52:23 +02:00
Ezio Melotti
09a8e163da
#16898 : merge with 3.3.
2013-01-10 06:12:43 +02:00
Ezio Melotti
b21af554ee
#16898 : test_bufio now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 06:11:34 +02:00
Ezio Melotti
e1b0d3e123
#16888 : merge with 3.3.
2013-01-10 06:06:31 +02:00
Ezio Melotti
1d3e96dbe2
#16888 : test_array now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 06:04:50 +02:00
Ezio Melotti
af5b688f71
#16896 : merge with 3.3.
2013-01-10 05:29:33 +02:00
Ezio Melotti
47236db1d0
#16896 : test_asyncore now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 05:28:52 +02:00
Ezio Melotti
9e97071fe0
#16897 : merge with 3.3.
2013-01-10 04:33:17 +02:00
Ezio Melotti
f472a90d31
#16897 : test_bisect now works with unittest test discovery. Initial patch by Zachary Ware.
2013-01-10 04:32:01 +02:00
Ezio Melotti
11b3a6056f
#16852 : merge with 3.3.
2013-01-10 03:29:45 +02:00
Ezio Melotti
d0dfe9ad46
#16852 : test_genericpath, test_posixpath, test_ntpath, and test_macpath now work with unittest test discovery. Patch by Zachary Ware.
2013-01-10 03:12:50 +02:00
Charles-François Natali
f424f3856d
Issue #16876 : Optimize epoll.poll() by keeping a per-instance epoll events
...
buffer instead of allocating a new one at each poll().
2013-01-09 19:00:26 +01:00
Benjamin Peterson
0b32a480bd
merge 3.3 ( #16906 )
2013-01-09 09:52:22 -06:00
Benjamin Peterson
0c270a8bb7
correct static string clearing loop ( closes #16906 )
2013-01-09 09:52:01 -06:00
Serhiy Storchaka
df558cb3b1
Issue #16491 : IDLE now prints chained exception tracebacks.
2013-01-09 12:26:54 +02:00
Serhiy Storchaka
7131749959
Issue #16491 : IDLE now prints chained exception tracebacks.
2013-01-09 12:24:48 +02:00
Serhiy Storchaka
78470b4c3a
Issue #16491 : IDLE now prints chained exception tracebacks.
2013-01-09 12:21:57 +02:00
Serhiy Storchaka
24a3ef6999
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
...
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:41:55 +02:00
Serhiy Storchaka
ae3b32ad6b
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
...
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:40:52 +02:00
Serhiy Storchaka
48e188e573
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
...
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:14:24 +02:00
Charles-François Natali
cd18e78897
Issue #16836 : Enable IPv6 support even if IPv6 is disabled on the build host.
2013-01-08 20:03:07 +01:00
Charles-François Natali
1aa004b45d
Issue #16836 : Enable IPv6 support even if IPv6 is disabled on the build host.
2013-01-08 19:51:56 +01:00
Charles-François Natali
f6fd794fac
Issue #16836 : Enable IPv6 support even if IPv6 is disabled on the build host.
2013-01-08 19:49:42 +01:00
Victor Stinner
2716d531a1
fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
2013-01-08 00:52:40 +01:00
Serhiy Storchaka
c99b5120a7
Issue #15972 : Fix error messages when os functions expecting a file name or
...
file descriptor receive the incorrect type.
2013-01-07 23:16:49 +02:00
Serhiy Storchaka
a2ad5c3ad1
Issue #15972 : Fix error messages when os functions expecting a file name or
...
file descriptor receive the incorrect type.
2013-01-07 23:13:46 +02:00
Serhiy Storchaka
05aba6ce39
Issue #16320 : Remove redundant Makefile dependencies for strings and bytes.
2013-01-06 21:36:21 +02:00
Christian Heimes
fb4b7b40e4
Issue #16881 : Fix Py_ARRAY_LENGTH macro for GCC < 3.1.
2013-01-06 16:42:20 +01:00
Christian Heimes
61dbb00869
Issue #16881 : Fix Py_ARRAY_LENGTH macro for GCC < 3.1.
2013-01-06 16:41:56 +01:00
Antoine Pitrou
58ddc9d743
Issue #8109 : The ssl module now has support for server-side SNI, thanks to a :meth:`SSLContext.set_servername_callback` method.
...
Patch by Daniel Black.
2013-01-05 21:20:29 +01:00
Ezio Melotti
d05d3cc4eb
#13094 : merge with 3.3.
2013-01-05 00:51:40 +02:00
Ezio Melotti
7d48669085
#13094 : merge with 3.2.
2013-01-05 00:51:20 +02:00
Ezio Melotti
cad8b0ff8e
#13094 : add Programming FAQ entry about the behavior of closures.
2013-01-05 00:50:46 +02:00
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
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
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