Victor Stinner
3b06dfb9d1
Issue #23571 : In debug mode, _Py_CheckFunctionResult() now calls
...
Py_FatalError() instead of using an assertion in debug mode. Py_FatalError()
displays the current exception and the traceback which contain more information
than just the assertion error.
2015-03-24 12:53:59 +01:00
Victor Stinner
de821befd4
Issue #23571 : PyErr_FormatV() and PyErr_SetObject() now always clear the
...
current exception because they can run arbitrary Python code and so no
exception must be set.
2015-03-24 12:41:23 +01:00
Victor Stinner
91afbb6088
Issue #23753 : Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c
...
I expected more users of _Py_wstat(), but in practice it's only used by
Modules/getpath.c. Move the function because it's not needed on Windows.
Windows uses PC/getpathp.c which uses the Win32 API (ex: GetFileAttributesW())
not the POSIX API.
2015-03-24 12:16:28 +01:00
Victor Stinner
10dc48497e
(Merge 3.4) 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 12:01:30 +01:00
Ezio Melotti
0f05cea057
#11468 : merge with 3.4.
2015-03-24 12:52:13 +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
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
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
Raymond Hettinger
551350a79f
Improve and fix-up comments.
2015-03-24 00:19:53 -07:00
Raymond Hettinger
0f1451c8c0
Issue 23744: Minor speed-up for deque.__bool__().
2015-03-23 23:23:55 -07: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
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
4dc2c221ca
Null merge
2015-03-23 15:26:49 +02: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
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
Raymond Hettinger
1b2f4d5f0c
merge
2015-03-22 15:29:48 -07: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
94a6448956
Merge: #23647 : Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
2015-03-22 16:18:59 -04: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
0a0d20edfb
Merge: #23539 : Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
2015-03-22 15:19:01 -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
5d06c74f41
Merge: #23700 : fix/improve comment
2015-03-22 12:34:50 -04:00
R David Murray
75ed90a4cf
#23700 : fix/improve comment
2015-03-22 12:33:46 -04:00
Paul Moore
a4d4dd3a9d
#23657 Don't explicitly do an isinstance check for str in zipapp
...
As a result, explicitly support pathlib.Path objects as arguments.
Also added tests for the CLI interface.
2015-03-22 15:32:36 +00:00
Benjamin Peterson
67057ab57c
merge 3.4 ( #22933 )
2015-03-22 10:15:12 -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
2f7bf23925
Issue #22289 : merge from 3.4
2015-03-22 01:19:10 -07: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
8472f39b06
Null merge
2015-03-22 09:47:20 +02: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
Victor Stinner
4f0efb0522
Issue #23571 : Fix test_capi
2015-03-21 17:24:50 +01:00
Victor Stinner
efde146b0c
Issue #23571 : _Py_CheckFunctionResult() now gives the name of the function
...
which returned an invalid result (result+error or no result without error) in
the exception message.
Add also unit test to check that the exception contains the name of the
function.
Special case: the final _PyEval_EvalFrameEx() check doesn't mention the
function since it didn't execute a single function but a whole frame.
2015-03-21 15:04:43 +01:00
Raymond Hettinger
6921c13bbb
Minor nit. Make the rotate() success/fail tests consistent.
2015-03-21 02:03:40 -07:00
Raymond Hettinger
ac13ad6a32
For safety, wait to decref deleted values until the deque state has been restored.
2015-03-21 01:53:16 -07:00
Raymond Hettinger
0f6f94778a
Fix minor formatting nits and remove unnecessary comment.
2015-03-21 01:42:10 -07:00
Raymond Hettinger
32ea16577d
Issue 23704: Add index(), copy(), and insert() to deques. Register deques as a MutableSequence.
2015-03-21 01:37:37 -07:00
Serhiy Storchaka
0a9e2721fa
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:41:19 +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
Serhiy Storchaka
f402775e5d
Removed trailing tabs.
2015-03-21 09:25:53 +02:00
Steve Dower
e9ae8340a3
Update Wix version and fixes wxs file.
2015-03-20 22:05:33 -07:00
Raymond Hettinger
39dadf7abf
Issue 23705: Improve the performance of __contains__ checks for deques.
2015-03-20 16:38:56 -07:00
Serhiy Storchaka
17d3a58e39
Issue #22832 : Tweaked parameter names for fcntl module to better match
...
official POSIX documentation. Updated the documenttion for Python 3.
Patch by Alex Shkop.
2015-03-20 20:04:21 +02:00
R David Murray
6faa62445f
Merge: #11726 : Make linecache docs reflect that all files are treated the same.
2015-03-20 11:32:17 -04:00
R David Murray
63998a3520
#11726 : Make linecache docs reflect that all files are treated the same.
...
Being able to read non-python text files is not a purpose of linecache, but it
does work and people use it. This changeset adjusts the language to make it
clear that Python files are not treated uniquely, but does not go so far as to
say reading non-python files is explicitly supported.
2015-03-20 11:31:38 -04:00
Victor Stinner
8291b5e4f7
Issue #22181 : Run "aclocal; autoconf; autoheader" to regenerate configure
2015-03-20 16:03:14 +01:00
Serhiy Storchaka
1dd49824df
Issue #23681 : The -b option now affects comparisons of bytes with int.
2015-03-20 16:54:57 +02:00
Serhiy Storchaka
ee4c0b9dcf
Issue #23681 : Fixed Python 2 to 3 poring bugs.
...
Indexing bytes retiurns an integer, not bytes.
2015-03-20 16:48:02 +02:00