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
Steve Dower
489199765f
Missing brace and minor formatting in Windows installer
2015-03-24 23:46:55 -07:00
Victor Stinner
81f241ab2e
Issue #23571 : If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),
...
close the binary file to fix a resource warning.
2015-03-25 02:25:25 +01:00
Victor Stinner
84092ac370
Issue #23571 : Fix reentrant call to Py_FatalError()
...
Flushing sys.stdout and sys.stderr in Py_FatalError() can call again
Py_FatalError(). Add a reentrant flag to detect this case and just abort at the
second call.
2015-03-25 01:54:46 +01:00
Serhiy Storchaka
b0749ca933
Fixed bytes warnings when run tests with -vv.
2015-03-25 01:33:19 +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
be1eb14241
Added tests for mixed kinds of Unicode strings.
2015-03-24 21:48:30 +02:00
Serhiy Storchaka
6c86fe2d4b
Issue #23583 : Added tests for standard IO streams in IDLE.
2015-03-24 19:46:54 +02:00
Victor Stinner
ec4f9592f5
Issue #23571 : Py_FatalError() now tries to flush sys.stdout and sys.stderr
...
It should help to see exceptions when stderr if buffered: PyErr_Display() calls
sys.stderr.write(), it doesn't write into stderr file descriptor directly.
2015-03-24 13:44:35 +01:00
Victor Stinner
0e98a76b65
Issue #23571 : Enhance Py_FatalError()
...
* Display the current Python stack if an exception was raised but the exception
has no traceback
* Disable faulthandler if an exception was raised (before it was only disabled
if no exception was raised)
* To display the current Python stack, call PyGILState_GetThisThreadState()
which works even if the GIL was released
2015-03-24 11:24:06 +01: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
Raymond Hettinger
f6e31b79a8
Issue 23729: Document ElementTree namespace handling and fix an omission in the XPATH predicate table.
2015-03-22 15:29:09 -07: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
R David Murray
75ed90a4cf
#23700 : fix/improve comment
2015-03-22 12:33:46 -04:00
Benjamin Peterson
218144a94d
clarify behavior of shutil.move when destination exists ( closes #22933 )
...
Patch by Mike Short.
2015-03-22 10:11:54 -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
d357b89f0b
Issue #22079 : Deprecation warning now is issued in PyType_Ready() instead of
...
raising TypeError when statically allocated type subclasses dynamically
allocated type
2015-03-22 09:46:36 +02: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
Steve Dower
2ea51c98db
Closes #9445 : Removes detection of GetFinalPathNameByHandle
2015-03-20 21:49:12 -07:00
Steve Dower
ef42dae7fa
Issue #23765 : Remove IsBadStringPtr calls in ctypes
...
Also renames a local to avoid warnings about shadowing
2015-03-24 23:28:54 -07:00
Steve Dower
c98290b91b
Fixes UI labels and ability to add/remove features.
2015-03-24 23:20:57 -07:00
Steve Dower
102f72cf1a
Adds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals and fixes test script.
2015-03-24 21:25:16 -07:00
Raymond Hettinger
fef9c1b368
Fix typo
2015-03-24 21:12:57 -07:00
Raymond Hettinger
8dbbae2e52
Minor code and comment cleanups.
2015-03-24 21:01:50 -07:00
Victor Stinner
dabbfe7b30
Issue #23573 : Fix bytes.rfind() and bytearray.rfind() on Windows
...
Windows has no memrchr() function.
This change is only a workaround, the optimization must be reenabled on other
platforms.
2015-03-25 03:16:32 +01:00
Victor Stinner
39183dfc68
Merge 3.4 (traceback)
2015-03-25 02:30:01 +01:00
Victor Stinner
53345a40bc
(Merge 3.4) Issue #23571 : Fix reentrant call to Py_FatalError()
...
Flushing sys.stdout and sys.stderr in Py_FatalError() can call again
Py_FatalError(). Add a reentrant flag to detect this case and just abort at the
second call.
2015-03-25 01:55:14 +01:00
Serhiy Storchaka
09ce2786e4
Fixed bytes warnings when run tests with -vv.
2015-03-25 01:34:03 +02:00
Serhiy Storchaka
15fa1c4ade
Fixed using deprecated escaping in regular expression in _strptime.py (issue23622).
2015-03-25 01:21:50 +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
f7ef47583e
Added tests for mixed kinds of Unicode strings.
2015-03-24 21:49:53 +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
8e2aa88a40
Issue #23741 : Slightly refactor the pprint module to make it a little more
...
extesible. No public API is added.
2015-03-24 18:45:23 +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
Benjamin Peterson
b365a06a84
change Σ to ν for obscure joke reasons
...
https://twitter.com/ncoghlan_dev/status/579173053793353728
2015-03-24 12:12:44 -04: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
Victor Stinner
944fbcc478
Issue #23571 : Enhance _Py_CheckFunctionResult()
...
Too bad, sometimes Py_FatalError() is unable to write the exception into
sys.stderr (on "AMD64 OpenIndiana 3.x" buildbot, the buildbot was probably out
of memory).
Call Py_FatalError() with a different message for the two cases (result+error,
or no result and no error).
2015-03-24 16:28:52 +01:00
Victor Stinner
381a9bce97
Issue #23571 : Update test_capi
2015-03-24 14:01:32 +01:00