Commit Graph

9467 Commits

Author SHA1 Message Date
Steve Dower
262dc1e71d Issue #27533: Release GIL in nt._isdir 2016-07-17 20:50:28 -07:00
Steve Dower
b22a67737e Issue #27533: Release GIL in nt._isdir 2016-07-17 20:49:38 -07:00
Stefan Krah
243d8a7866 Merge 3.5. 2016-07-17 14:12:59 +02:00
Stefan Krah
8c126f17f0 Issue #26974: Fix segfault in the presence of absurd subclassing. Proactively
eliminate all internal uses of overridden methods.
2016-07-17 14:01:42 +02:00
Serhiy Storchaka
3410c01d83 Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
Original patch by Alexandre Vassalotti.
2016-07-17 11:35:35 +03:00
Serhiy Storchaka
dec25afab1 Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
Original patch by Alexandre Vassalotti.
2016-07-17 11:24:17 +03:00
Brett Cannon
044283a426 Issue #27512: Don't segfault when os.fspath() calls an object whose
__fspath__() raises an exception.

Thanks to Xiang Zhang for the patch.
2016-07-15 10:41:49 -07:00
Martin Panter
7386268ffd Issue #23804: Merge SSL recv() fix from 3.5 2016-07-11 01:32:09 +00:00
Martin Panter
bed7f1a512 Issue #23804: Fix SSL zero-length recv() calls to not block and raise EOF 2016-07-11 00:17:13 +00:00
Victor Stinner
53e22bfea5 Issue #22624: Python 3 requires clock() to build 2016-07-08 17:55:01 +02:00
Serhiy Storchaka
2954f83999 - Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic.  Patch by Petr Viktorin.
2016-07-07 18:20:03 +03:00
Serhiy Storchaka
1a2b24f02d Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic.  Patch by Petr Viktorin.
2016-07-07 17:35:15 +03:00
Benjamin Peterson
50600a78cb merge 3.5 (#24557) 2016-07-06 23:58:16 -07:00
Benjamin Peterson
b8a2f51ceb assume egd unless OPENSSL_NO_EGD is defined—remove configure check (closes #24557) 2016-07-06 23:55:15 -07:00
Serhiy Storchaka
95657cdd40 Issue #26243: Only the level argument to zlib.compress() is keyword argument
now.  The first argument is positional-only.
2016-06-25 22:43:05 +03:00
Martin Panter
b466f8facf Remove duplicate AF_INET6 addition 2016-06-25 03:06:58 +00:00
Brett Cannon
a32c4d0531 Issue #27038: Expose DirEntry as os.DirEntry.
Thanks to Jelle Zijlstra for the code portion of the patch.
2016-06-24 14:14:44 -07:00
Brett Cannon
c78ca1e044 Issue #27186: Update os.fspath()/PyOS_FSPath() to check the return
type of __fspath__().

As part of this change, also make sure that the pure Python
implementation of os.fspath() is tested.
2016-06-24 12:03:43 -07:00
Serhiy Storchaka
5ffdcad7b9 Fixed integer overflow in array.buffer_info(). 2016-06-23 23:56:46 +03:00
Serhiy Storchaka
9e941d6373 Fixed integer overflow in array.buffer_info(). 2016-06-23 23:55:34 +03:00
Stefan Krah
1d245fabaf Merge 3.5. 2016-06-20 14:13:12 +02:00
Stefan Krah
947f099d99 Issue #27006: Do not use PyDec_CheckExact() on a type. 2016-06-20 14:12:52 +02:00
Stefan Krah
8113f490c5 Merge 3.5. 2016-06-20 12:10:42 +02:00
Stefan Krah
6817c59cf0 Issue #27006: from_float(): call the subclass' __new__() and __init__(). 2016-06-20 12:10:13 +02:00
Serhiy Storchaka
696c8af41f Use macros instead of corresponding functions (they never fail) in _tkinter.c. 2016-06-19 11:22:47 +03:00
Serhiy Storchaka
977b3ac1c1 Issue #27177: Match objects in the re module now support index-like objects
as group indices.  Based on patches by Jeroen Demeyer and Xiang Zhang.
2016-06-18 16:48:07 +03:00
Berker Peksag
3583c3bd1d Issue #26536: Use spaces instead of tabs 2016-06-18 16:43:25 +03:00
Serhiy Storchaka
d91e676fd5 Issue #27343: Fixed error message for conflicting initializers of ctypes.Structure. 2016-06-18 09:58:55 +03:00
Serhiy Storchaka
886a5f352f Issue #27343: Fixed error message for conflicting initializers of ctypes.Structure. 2016-06-18 09:58:24 +03:00
Steve Dower
ea93ac013d Issue #26536: socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes. 2016-06-17 12:52:18 -07:00
Serhiy Storchaka
d4b45cb9ca ctypes: the type of b_size is Py_ssize_t. 2016-06-17 11:13:03 +03:00
Serhiy Storchaka
85e6635edf ctypes: the type of b_size is Py_ssize_t. 2016-06-17 11:11:07 +03:00
Serhiy Storchaka
74108614b1 Issue #27330: Fixed possible leaks in the ctypes module. 2016-06-16 22:10:13 +03:00
Serhiy Storchaka
adef6460d7 Issue #27330: Fixed possible leaks in the ctypes module. 2016-06-16 22:08:46 +03:00
Xavier de Gaye
c716f183f8 Issue #26862: SYS_getdents64 does not need to be defined on android API 21. 2016-06-15 11:35:29 +02:00
Berker Peksag
e0b70cd8a9 Issue #16864: Cursor.lastrowid now supports REPLACE statement
Initial patch by Alex LordThorsen.
2016-06-14 15:25:36 +03:00
Benjamin Peterson
c09087680e merge 3.5 2016-06-13 23:43:40 -07:00
Benjamin Peterson
11a693d330 merge 3.4 2016-06-13 23:41:40 -07:00
Benjamin Peterson
06d49bb895 sync ordering of stddef.h includes with expat 2.1.1 2016-06-13 23:41:19 -07:00
doko@ubuntu.com
17f0e61891 - Modules/_collectionsmodule.c: Mark one more internal symbol as static. 2016-06-14 07:27:58 +02:00
Martin Panter
4074f93b33 Issue #16182: Merge readline locale fix from 3.5 2016-06-14 02:47:56 +00:00
Martin Panter
f00c49df10 Issue #16182: Fix readline begidx, endidx, and use locale encoding
Based on patch by Serhiy Storchaka.
2016-06-14 01:16:16 +00:00
doko@ubuntu.com
fcff437de3 - Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
exposed on the API which are not implemented on GNU/Hurd. They would not
  work at runtime anyway.
2016-06-13 16:33:04 +02:00
Berker Peksag
f84f259b0b Merge from 3.5 2016-06-12 19:18:17 +03:00
Berker Peksag
0e1d6802ff Fix typo in _sqlite/module.h 2016-06-12 19:17:49 +03:00
Berker Peksag
0f355c0022 Issue #27190: Merge from 3.5 2016-06-12 14:10:24 +03:00
Berker Peksag
7bea2347c7 Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1
Patch by Dave Sawyer.
2016-06-12 14:09:51 +03:00
Serhiy Storchaka
b62ff6eb57 Issue #25455: Fixed a crash in repr of recursive functools.partial objects. 2016-06-12 11:51:26 +03:00
Serhiy Storchaka
179f960d47 Issue #25455: Fixed a crash in repr of recursive functools.partial objects. 2016-06-12 11:44:06 +03:00
Serhiy Storchaka
f0ee5ccd19 Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. 2016-06-12 09:47:20 +03:00