Benjamin Peterson
5aab44b301
merge 3.5 ( #25973 )
2015-12-29 10:08:51 -06:00
Benjamin Peterson
3cc8f4b969
make recording and reporting errors and nonlocal and global directives more robust ( closes #25973 )
2015-12-29 10:08:34 -06:00
Zachary Ware
bffa73e582
Issue #25972 , #20440 : Fix compilation on Windows
2015-12-28 21:51:02 -08:00
Brett Cannon
eae3079041
Issue #25802 : Deprecate load_module() on importlib.machinery.SourceFileLoader and SourcelessFileLoader.
...
They were the only remaining implementations of load_module() not
documented as deprecated.
2015-12-28 17:55:27 -08:00
Brett Cannon
53d1f24408
Merge for backport of fix for issue #25930
2015-12-28 17:30:57 -08:00
Brett Cannon
01f7ac3bb0
Backport of fix for issue #25930
2015-12-28 17:30:32 -08:00
Brett Cannon
050391774a
Issue #25930 : Document that os.unlink and os.remove are *semantically* identical.
...
Saying that the functions were identical confused some users who were
upset when the functions were no longer simply the same function under
different names.
Thanks to Anthony Sottile for the bug report and Swati Jaiswal for the
initial patch.
2015-12-28 17:28:19 -08:00
Brett Cannon
838629a1fe
Issue #25234 : Skip test_eintr.test_os_open under OS X.
...
Test inconsistently hangs.
2015-12-28 17:23:35 -08:00
Brett Cannon
3bbad12b5b
Tweak skipping message
2015-12-28 17:21:44 -08:00
Brett Cannon
b4783f4bc1
Merge
2015-12-28 17:18:21 -08:00
Brett Cannon
3c61a448f1
Issue #24725 : Skip the test_socket.testFDPassEmpty on OS X.
...
In OS X 10.11, the test fails consistently due to a platform change
since 10.10. Thanks to Jeff Ramnani for the patch.
2015-12-28 17:17:58 -08:00
Stefan Krah
150660eefd
Issue #25940 : Make buildbots usable again until a solution is found.
2015-12-29 02:15:35 +01:00
Stefan Krah
2335f44d8e
Issue #25928 : Temporarily disable some tests in test_statistics in order
...
to sort out its assumptions about the as_integer_ratio() interface.
2015-12-29 00:11:36 +01:00
Stefan Krah
6f5470880e
Fix typo.
2015-12-28 23:17:05 +01:00
Stefan Krah
e3f359c71c
Merge.
2015-12-28 23:12:52 +01:00
Stefan Krah
53f2e0ad45
Issue #25928 : Add Decimal.as_integer_ratio(). Python parts and docs by
...
Mark Dickinson.
2015-12-28 23:02:02 +01:00
Serhiy Storchaka
3f1b95b4ae
Merge heads
2015-12-29 00:01:31 +02:00
Serhiy Storchaka
e3a7d26aa6
Issue #25447 : Copying the lru_cache() wrapper object now always works,
...
independedly from the type of the wrapped object (by returning the original
object unchanged).
2015-12-28 23:59:09 +02:00
Serhiy Storchaka
e4d65e3aab
Issue #25447 : Copying the lru_cache() wrapper object now always works,
...
independedly from the type of the wrapped object (by returning the original
object unchanged).
2015-12-28 23:58:07 +02:00
Ezio Melotti
ac1e7f6983
Remove duplicate method in test_pathlib. Initial patch by Navneet Suman.
2015-12-28 23:50:19 +02:00
Brett Cannon
1e3c3e906c
Issue #25768 : Make compileall functions return booleans and document
...
the return values as well as test them.
Thanks to Nicholas Chammas for the bug report and initial patch.
2015-12-27 13:17:04 -08:00
Brett Cannon
4a4ca7c13f
Merge for issue #12484
2015-12-27 12:24:36 -08:00
Brett Cannon
762d5ea875
Issue #12484 : Remove a mention of Py_InitModule() and _PyImport_FixupExtension().
...
Thanks to Alejandro Santos for the bug report and Anish Shah for the
patch.
2015-12-27 12:24:06 -08:00
Brett Cannon
0792451ea4
Merge for issue #25874
2015-12-27 12:09:10 -08:00
Brett Cannon
85622e4bc9
Issue #25874 : Clarify platform support in the "Using Python on Windows" doc.
...
Thanks to Chris Wilcox for the initial patch.
2015-12-27 12:08:37 -08:00
Serhiy Storchaka
1ed017ae92
Issue #20440 : Cleaning up the code by using Py_SETREF and Py_CLEAR.
...
Old code is correct, but with Py_SETREF and Py_CLEAR it can be cleaner.
This patch doesn't fix bugs and hence there is no need to backport it.
2015-12-27 15:51:32 +02:00
Serhiy Storchaka
726fc139a5
Issue #20440 : More use of Py_SETREF.
...
This patch is manually crafted and contains changes that couldn't be handled
automatically.
2015-12-27 15:44:33 +02:00
Serhiy Storchaka
191321d11b
Issue #20440 : More use of Py_SETREF.
...
This patch is manually crafted and contains changes that couldn't be handled
automatically.
2015-12-27 15:41:34 +02:00
Serhiy Storchaka
bdb908ea54
Issue #20440 : Applied yet one patch for using Py_SETREF.
...
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
2015-12-27 12:38:28 +02:00
Serhiy Storchaka
4a1e70fc31
Issue #20440 : Applied yet one patch for using Py_SETREF.
...
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
2015-12-27 12:36:18 +02:00
Vinay Sajip
40005a7807
Closes #25360 : Merged fix from 3.5.
2015-12-26 13:11:38 +00:00
Vinay Sajip
a5892abf23
Fixes #25360 : Search for pythonw.exe when in pyw.exe.
2015-12-26 13:10:51 +00:00
Vinay Sajip
c1681674d4
Closes #25685 : Merged fix from 3.5.
2015-12-26 12:51:43 +00:00
Vinay Sajip
9cdfd18fc6
Closes #25685 : Made SocketHandler emission more efficient.
2015-12-26 12:48:44 +00:00
Vinay Sajip
aab9f46c6d
Closes #25789 : Improved buffering behaviour in launcher.
2015-12-26 12:35:47 +00:00
Serhiy Storchaka
f9253c96fd
Issue #22995 : Instances of extension types with a state that aren't
...
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled. Including memoryview.
2015-12-25 21:05:35 +02:00
Serhiy Storchaka
f81be8aa3f
Issue #22995 : Instances of extension types with a state that aren't
...
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled. Including memoryview.
2015-12-25 21:04:29 +02:00
Serhiy Storchaka
ef1585eb9a
Issue #25923 : Added more const qualifiers to signatures of static and private functions.
2015-12-25 20:01:53 +02:00
Serhiy Storchaka
2d06e84455
Issue #25923 : Added the const qualifier to static constant arrays.
2015-12-25 19:53:18 +02:00
Serhiy Storchaka
ea8c43152f
Issue #24103 : Fixed possible use after free in ElementTree.XMLPullParser.
2015-12-24 11:53:16 +02:00
Serhiy Storchaka
bc4ded9537
Issue #24103 : Fixed possible use after free in ElementTree.XMLPullParser.
2015-12-24 11:51:57 +02:00
Serhiy Storchaka
f006940351
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:39:57 +02:00
Serhiy Storchaka
5a57ade58e
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:35:59 +02:00
R David Murray
2bd58e3991
Merge: #1753718 : clarify RFC compliance and bytes/string argument types.
2015-12-23 21:19:53 -05:00
R David Murray
a198645fa0
#1753718 : clarify RFC compliance and bytes/string argument types.
...
Patch includes contributions by Isobel Hooper, incorporating suggestions from
Paul Winkler. Reviewed by Martin Panter.
In addition to accepting the corrections for the RFC compliance wording, I
went through and corrected all the argument and return types, and made the
pattern of how the arguments and return types are documented consistent.
So, this patch also addresses #20782 , though I had forgotten about that issue
and its patch.
2015-12-23 21:17:17 -05:00
Serhiy Storchaka
85896f72d5
Issue #25860 : Fixed test failure caused by inconsistency of os.walk() and
...
os.fwalk() parameter names.
2015-12-23 00:37:50 +02:00
Serhiy Storchaka
a17ca19d34
Issue #25860 : Fixed test failure caused by inconsistency of os.walk() and
...
os.fwalk() parameter names.
2015-12-23 00:37:34 +02:00
Serhiy Storchaka
345e78e566
Issue #25860 : os.fwalk() no longer skips remaining directories when error occurs.
...
Original patch by Samson Lee.
2015-12-23 00:09:01 +02:00
Serhiy Storchaka
0bddc9eb15
Issue #25860 : os.fwalk() no longer skips remaining directories when error occurs.
...
Original patch by Samson Lee.
2015-12-23 00:08:24 +02:00
Serhiy Storchaka
3987e26e75
Issue #25914 : Fixed and simplified OrderedDict.__sizeof__.
2015-12-22 08:22:05 +02:00