Victor Stinner
f70e1ca0fc
Issue #23485 : select.select() is now retried automatically with the recomputed
...
timeout when interrupted by a signal, except if the signal handler raises an
exception. This change is part of the PEP 475.
The asyncore and selectors module doesn't catch the InterruptedError exception
anymore when calling select.select(), since this function should not raise
InterruptedError anymore.
2015-03-30 21:16:11 +02:00
Serhiy Storchaka
2c7b5a9d0d
Issue #23466 : %c, %o, %x, and %X in bytes formatting now raise TypeError on
...
non-integer input.
2015-03-30 09:19:08 +03:00
Serhiy Storchaka
7901b48a1f
Issue #23171 : csv.Writer.writerow() now supports arbitrary iterables.
2015-03-30 09:09:54 +03:00
R David Murray
c4bb599be0
Merge: #23745 : handle duplicate MIME parameter names in new parser.
2015-03-29 21:54:27 -04:00
R David Murray
7d0325d6c8
#23745 : handle duplicate MIME parameter names in new parser.
...
This mimics get_param's error handling for the most part. It is slightly
better in some regards as get_param can produce some really weird results for
duplicate *0* parts. It departs from get_param slightly in that if we have a
mix of non-extended and extended pieces for the same parameter name, the new
parser assumes they were all supposed to be extended and concatenates all the
values, whereas get_param always picks the non-extended parameter value. All
of this error recovery is pretty much arbitrary decisions...
2015-03-29 21:53:05 -04:00
Victor Stinner
520bddf79a
Issue #23752 : When built from an existing file descriptor, io.FileIO() now only
...
calls fstat() once. Before fstat() was called twice, which was not necessary.
2015-03-30 03:21:06 +02:00
Victor Stinner
dca028b86a
Issue #22117 : Fix os.utime(), it now rounds the timestamp towards minus
...
infinity (-inf) instead of rounding towards zero.
Replace _PyTime_ROUND_DOWN with _PyTime_ROUND_FLOOR.
2015-03-30 01:02:57 +02:00
Serhiy Storchaka
a3a100b594
Issue #22390 : test.regrtest now emits a warning if temporary files or
...
directories are left after running a test.
2015-03-30 01:28:02 +03:00
Serhiy Storchaka
10915aa85c
Issue #22390 : test.regrtest now emits a warning if temporary files or
...
directories are left after running a test.
2015-03-30 01:30:22 +03:00
Serhiy Storchaka
07360df481
Issue #14260 : The groupindex attribute of regular expression pattern object
...
now is non-modifiable mapping.
2015-03-30 01:01:48 +03:00
Benjamin Peterson
0deefd5a94
merge 3.4 ( #23801 )
2015-03-29 16:45:19 -04:00
Donald Stufft
d90f8d10e0
Closes #23801 - Ignore entire preamble to multipart in cgi.FieldStorage
2015-03-29 16:43:23 -04:00
R David Murray
f375b0a4d5
Merge: #23792 : Ignore KeyboardInterrupt when the pydoc pager is active.
2015-03-29 15:19:13 -04:00
R David Murray
1058cda38f
#23792 : Ignore KeyboardInterrupt when the pydoc pager is active.
...
Previously, if you hit ctl-c while the pager was active, the python that
launched the subprocess for the pager would see the KeyboardInterrupt in the
__exit__ method of the subprocess context manager where it was waiting for the
subprocess to complete, ending the wait. This would leave the pager running,
while the interactive interpreter, after handling the exception by printing
it, would go back to trying to post a prompt...but the pager would generally
have the terminal in raw mode, and in any case would be still trying to read
from stdin. On some systems, even exiting python at that point would not
restore the terminal mode. The problem with raw mode could also happen if
ctl-C was hit when pydoc was called from the shell command line and the pager
was active.
Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt
just like the pager does, until the pager actually exits.
(Note: this was a regression relative to python2...in python2 the pager
is called via system, and system does not return until the pager exits.)
2015-03-29 15:15:40 -04:00
Serhiy Storchaka
48070c1248
Issue #23803 : Fixed str.partition() and str.rpartition() when a separator
...
is wider then partitioned string.
2015-03-29 19:21:02 +03:00
Serhiy Storchaka
bfbfc8deb2
Removed unintentional trailing spaces in text files.
2015-03-29 19:12:58 +03:00
Serhiy Storchaka
aa4c36fbbb
Issue #23775 : pprint() of OrderedDict now outputs the same representation
...
as repr().
2015-03-26 08:51:33 +02:00
Steve Dower
e6bb7eb27b
Issue #23765 : Removed IsBadStringPtr calls in ctypes
2015-03-25 21:58:36 -07:00
Serhiy Storchaka
632a77e6a3
Issue #22364 : Improved some re error messages using regex for hints.
2015-03-25 21:03:47 +02:00
Serhiy Storchaka
b20f905f6d
Issue #23742 : ntpath.expandvars() no longer loses unbalanced single quotes.
2015-03-25 16:41:15 +02:00
Serhiy Storchaka
1b87ae0c91
Issue #23742 : ntpath.expandvars() no longer loses unbalanced single quotes.
2015-03-25 16:40:15 +02:00
Serhiy Storchaka
764fc9bfac
Issue #21717 : The zipfile.ZipFile.open function now supports 'x' (exclusive
...
creation) mode.
2015-03-25 10:09:41 +02:00
Serhiy Storchaka
7665be6087
Issue #21802 : The reader in BufferedRWPair now is closed even when closing
...
writer failed in BufferedRWPair.close().
2015-03-24 23:21:57 +02:00
Serhiy Storchaka
8ffe917cee
Issue #23671 : string.Template now allows to specify the "self" parameter as
...
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:28:43 +02:00
Serhiy Storchaka
6c86fe2d4b
Issue #23583 : Added tests for standard IO streams in IDLE.
2015-03-24 19:46:54 +02:00
Ezio Melotti
2e3998fae0
#11468 : improve unittest basic example. Initial patch by Florian Preinstorfer.
2015-03-24 12:42:41 +02:00
Victor Stinner
19276f184f
Issue #23654 : Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)
...
Issue #23654 : Turn off ICC's tail call optimization for the stack_overflow
generator. ICC turns the recursive tail call into a loop.
Patch written by Matt Frank.
2015-03-23 21:20:27 +01:00
Serhiy Storchaka
d4c2ac8394
Issue #21560 : An attempt to write a data of wrong type no longer cause
...
GzipFile corruption. Original patch by Wolfgang Maier.
2015-03-23 15:25:43 +02:00
R David Murray
936da2a796
#23647 : Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
2015-03-22 16:17:46 -04:00
R David Murray
beed8402ca
#23539 : Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
...
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.
Patch by James Rutherford, with additional cleaning up of the
'request' documentation by me.
2015-03-22 15:18:23 -04:00
Ned Deily
ce8f5ded65
Issue #22289 : Prevent test_urllib2net failures due to ftp connection timeout.
2015-03-22 01:14:48 -07:00
Serhiy Storchaka
52027c301a
Issue #22351 : The nntplib.NNTP constructor no longer leaves the connection
...
and socket open until the garbage collector cleans them up. Patch by
Martin Panter.
2015-03-21 09:40:26 +02:00
Serhiy Storchaka
8be6be427d
Issue #21802 : The reader in BufferedRWPair now is closed even when closing
...
writer failed in BufferedRWPair.close().
2015-03-24 23:23:28 +02:00
Serhiy Storchaka
a54aae0683
Issue #23622 : Unknown escapes in regular expressions that consist of ``'\'``
...
and ASCII letter now raise a deprecation warning and will be forbidden in
Python 3.6.
2015-03-24 22:58:14 +02:00
Serhiy Storchaka
793c14ea29
Issue #4727 : Fixed issue number in Misc/NEWS.
2015-03-24 22:37:08 +02:00
Serhiy Storchaka
b876df4cbb
Issue #23671 : string.Template now allows to specify the "self" parameter as
...
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:30:46 +02:00
Serhiy Storchaka
d9d769fcdd
Issue #23573 : Increased performance of string search operations (str.find,
...
str.index, str.count, the in operator, str.split, str.partition) with
arguments of different kinds (UCS1, UCS2, UCS4).
2015-03-24 21:55:47 +02:00
Serhiy Storchaka
520e00dd92
Issue #23583 : Added tests for standard IO streams in IDLE.
2015-03-24 19:49:23 +02:00
Serhiy Storchaka
87eb482e30
Issue #23502 : The pprint module now supports mapping proxies.
...
In particular the __dict__ attributes of building types.
2015-03-24 19:31:50 +02:00
Serhiy Storchaka
022f20376a
Issue #17530 : pprint now wraps long bytes objects and bytearrays.
2015-03-24 19:22:37 +02:00
Serhiy Storchaka
72bd327db0
Issue #22687 : Fixed some corner cases in breaking words in tetxtwrap.
...
Got rid of quadratic complexity in breaking long words.
2015-03-24 18:32:27 +02:00
Serhiy Storchaka
32af7549a7
Issue #20289 : The copy module now uses pickle protocol 4 (PEP 3154) and
...
supports copying of instances of classes whose __new__ method takes
keyword-only arguments.
2015-03-24 18:06:42 +02:00
Ezio Melotti
0f05cea057
#11468 : merge with 3.4.
2015-03-24 12:52:13 +02:00
Victor Stinner
f329878e74
Issue #23753 : Python doesn't support anymore platforms without stat() or
...
fstat(), these functions are always required.
Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and
DONT_HAVE_FSTAT.
2015-03-24 10:27:50 +01:00
Paul Moore
929a14a880
Misc/NEWS entries for zipapp changes
2015-03-23 21:40:43 +00:00
Victor Stinner
d1f3a002c3
Merge 3.4 (faulthandler ICC)
2015-03-23 21:21:00 +01:00
Serhiy Storchaka
bca63b362d
Issue #23688 : Added support of arbitrary bytes-like objects and avoided
...
unnecessary copying of memoryview in gzip.GzipFile.write().
Original patch by Wolfgang Maier.
2015-03-23 14:59:48 +02:00
Serhiy Storchaka
77d899726f
Issue #23252 : Added support for writing ZIP files to unseekable streams.
2015-03-23 01:09:35 +02:00
Serhiy Storchaka
f07a4b663d
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
2015-03-23 00:47:45 +02:00
R David Murray
94a6448956
Merge: #23647 : Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
2015-03-22 16:18:59 -04:00