summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661)Miss Islington (bot)2017-12-011-1/+5
| | | | | | | In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called without releasing the GIL. This can cause all threads to hang for unlimited time when calling FileIO.read() and the NFS server is not accessible. (cherry picked from commit 6a89481680b921e7b317c29877bdda9a6031e5ad)
* bpo-28416: Break reference cycles in Pickler and Unpickler subclasses ↵Miss Islington (bot)2017-11-301-38/+98
| | | | | | (GH-4080) (#4653) with the persistent_id() and persistent_load() methods. (cherry picked from commit 986375ebde0dd5ff2b7349e445a06bd28a3a8ee2)
* bpo-31440: Changed default module search path for windows (#4613)Miss Islington (bot)2017-11-281-2/+2
| | | (cherry picked from commit 08d2b86a1058b733bb7f1ae2b55818dd9687d21c)
* bpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416)Victor Stinner2017-11-161-3/+19
| | | (cherry picked from commit 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16)
* bpo-32020: arraymodule: Correct missing Py_DECREF in failure case of ↵Miss Islington (bot)2017-11-141-1/+3
| | | | | make_array() (GH-4391) (#4392) (cherry picked from commit 56935a53b11b9a70f3e13e460777ec81a5b9195e)
* bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() ↵Miss Islington (bot)2017-11-131-1/+5
| | | | | (GH-4384) (#4385) (cherry picked from commit f76231f89a7231fd486b37f728fbb4aab389e4d7)
* [3.6] bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. ↵Serhiy Storchaka2017-11-092-58/+61
| | | | | | | | | (GH-4235) (#4352) * Fix compilation of the socket module on NetBSD 8. * Fix the assertion failure or reading arbitrary data when parse a AF_BLUETOOTH address on NetBSD and DragonFly BSD. * Fix other potential errors and make the code more reliable. (cherry picked from commit d3187158c09cf899e9849f335bdff10594209167)
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Miss Islington (bot)2017-11-071-0/+5
| | | | | object is uninitialized (GH-3958) (#4303) (cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)
* bpo-31770: Prevent a crash and refleaks when calling ↵Miss Islington (bot)2017-11-071-8/+7
| | | | | sqlite3.Cursor.__init__() more than once (GH-3968) (#4301) (cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
* bpo-31933: fix blake2 multi-byte params on big endian platforms (GH-4250) ↵Miss Islington (bot)2017-11-032-4/+8
| | | | | | | | | | | | | | | (#4262) All Blake2 params have to be encoded in little-endian byte order. For the two multi-byte integer params, leaf_length and node_offset, that means that assigning a native-endian integer to them appears to work on little-endian platforms, but gives the wrong result on big-endian. The current libb2 API doesn't make that very clear, and @sneves is working on new API functions in the GH issue above. In the meantime, we can work around the problem by explicitly assigning little-endian values to the parameter block. See https://github.com/BLAKE2/libb2/issues/12. (cherry picked from commit dcfb0e3c04f1b29a0d09bb0a81dcd5ee5a5fef1a)
* bpo-30057: Fix potential missed signal in signal.signal(). (GH-4258) (#4261)Miss Islington (bot)2017-11-031-1/+4
| | | | Bug report and patch by Jeroen Demeyer. (cherry picked from commit f6f90ff079a22b79a58d47b6117cc8a8c7d366f3)
* [3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic ↵Tal Einat2017-11-032-5/+5
| | | | | | | | | | | (GH-4230) (#4253) When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF GH-define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name.. (cherry picked from commit 4f57409a2f7bdf8fb559cddc7c6533ca2c471c67)
* bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵Miss Islington (bot)2017-11-011-12/+26
| | | | | (GH-4220) (#4221) (cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)
* bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵Miss Islington (bot)2017-11-011-2/+10
| | | | | | | earlier. (GH-3826) (#4218) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7. (cherry picked from commit 7e68790f3db75a893d5dd336e6201a63bc70212b)
* bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)Miss Islington (bot)2017-11-011-2/+4
| | | (cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
* Remove nested comments in blake2 (GH-4173) (#4214)Miss Islington (bot)2017-11-011-2/+4
| | | | | | | | | | | | Replace occurence of nested comments in blake2 reference implementation with preprocessor directive for disabling unused code. `blake2s-load-xop.h` is conditionally pulled in only on chips with XOP support, among others the AMD Bulldozer. The malformed comments in the source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0. Official reference code on github uses `GH-if` so this change should be uncontroversial. (cherry picked from commit 388cd85e51aa9c73f8e7f35f0d06c258be7b579c)
* bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) ↵Miss Islington (bot)2017-11-011-8/+16
| | | | | | | | | | | (#4212) Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). (cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
* bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) ↵Miss Islington (bot)2017-10-311-4/+4
| | | | | | | (#4201) * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)
* bpo-31893: Fixed select.kqueue(). (GH-4166) (#4190)Miss Islington (bot)2017-10-311-47/+71
| | | | | * Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects. (cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)
* bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)Miss Islington (bot)2017-10-311-33/+40
| | | (cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
* [3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). ↵xdegaye2017-10-261-0/+63
| | | | | (#4135) (cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)
* bpo-31752: Fix possible crash in timedelta constructor called with custom ↵Miss Islington (bot)2017-10-231-2/+7
| | | | | | integers. (GH-3947) (#4086) Bad remainder in divmod() in intermediate calculations caused an assertion failure. (cherry picked from commit 4ffd4653a7ec9c97775472276cf5e159e2366bb2)
* [3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)Miss Islington (bot)2017-10-231-0/+128
| | | (cherry picked from commit 85f643023fed3d4e2fb8e399f9ad57f3a65ef237)
* [3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. ↵Serhiy Storchaka2017-10-231-30/+33
| | | | | (GH-3729). (#4081) (cherry picked from commit 04e36af9b88cd5e80fc818e51d46f07252a2ff3f)
* [3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)Miss Islington (bot)2017-10-181-9/+16
| | | | | | | Always pass -1, or INFTIM where defined, to the poll() system call when a negative timeout is passed to the poll.poll([timeout]) method in the select module. Various OSes throw an error with arbitrary negative values. (cherry picked from commit 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604)
* [3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing ↵Miss Islington (bot)2017-10-183-6/+6
| | | | | | | | | in more functions (GH-4026) (#4032) Fix timeout rounding in time.sleep(), threading.Lock.acquire() and socket.socket.settimeout() to round correctly negative timeouts between -1.0 and 0.0. The functions now block waiting for events as expected. Previously, the call was incorrectly non-blocking. (cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)
* [3.6] bpo-31786: Make functions in the select module blocking when timeout ↵Pablo Galindo2017-10-182-9/+10
| | | | | is a small negative value. (GH-4003). (#4022) (cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)
* [3.6] completly -> completely (GH-3999) (closes bpo-31788) (#4008)Miss Islington (bot)2017-10-151-1/+1
| | | (cherry picked from commit 1295e11d397c6138427296d5f9653a9e7dd69062)
* [3.6] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095) ↵Miss Islington (bot)2017-10-121-16/+13
| | | | | (#3973) (cherry picked from commit de072100775cc29e6cd93a75466cecbd1086f258)
* bpo-28647: Update -u documentation (GH-3954)Berker Peksag2017-10-111-2/+2
| | | | | | * stdout and stderr are always opened in text mode * and they are line-buffered Initial patch by Gareth Rees.
* [3.6] bpo-28157: Improvements for the time module documentation (GH-928)Miss Islington (bot)2017-10-111-22/+1
| | | | | | | * Separated functions and constants descriptions in sections. * Added a note about the limitations of timezone constants. * Removed redundant lists from the module docstring. (cherry picked from commit 703ff381ffa946c23e7e25b0ae93a636a2607a40)
* [3.6] bpo-31728: Prevent crashes in _elementtree due to unsafe cleanup of ↵Miss Islington (bot)2017-10-101-34/+28
| | | | | Element.text and Element.tail (GH-3924) (#3945) (cherry picked from commit 39ecb9c71b6e55d8a61a710d0144231bd88f9ada)
* [3.6] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and ↵Miss Islington (bot)2017-10-031-2/+10
| | | | | | | | split() (GH-3866) (#3874) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests. (cherry picked from commit 27c623c845dd6e4b8e1782666ca3a956636da266)
* [3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). ↵Serhiy Storchaka2017-10-032-13/+13
| | | | | (GH-3864). (#3873) (cherry picked from commit 929b40a601db868530d6beaafb3256822103a7fb)
* bpo-28129: fix ctypes crashes (#386) (#3799)Victor Stinner2017-09-282-9/+34
| | | | | | | | | | | | | * init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy * added the rest of tests and patches. probably only a first draft. * removed trailing spaces * replace ctype with ctypes in error messages * change back from ctypes instance to ctype instance (cherry picked from commit 1bea762d9ec823544c530d567330a47f64d93d4f)
* [3.6] bpo-31478: Fix an assertion failure in random.seed() in case a seed ↵Serhiy Storchaka2017-09-281-2/+5
| | | | | has a bad __abs__() method. (GH-3596) (#3794) (cherry picked from commit d780b2d588e68bd7047ef5d1f04e36da38b7a350)
* [3.6] bpo-31505: Fix an assertion failure in json, in case ↵Miss Islington (bot)2017-09-271-3/+13
| | | | | _json.make_encoder() received a bad encoder() argument. (GH-3643) (#3777) (cherry picked from commit 2b382dd6121bb1e4b75470fb3ef8555665df3eb6)
* [3.6] bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ ↵Miss Islington (bot)2017-09-271-1/+9
| | | | | attr is defined only outside _fields_. (GH-3615) (#3774) (cherry picked from commit 30b61b51e05d2d43e8e2e783b0a9df738535423b)
* [3.6] bpo-31586: Use _count_element fast path for real dicts. (#3776)Miss Islington (bot)2017-09-271-1/+3
| | | (cherry picked from commit 31aca4bf79217e6ec4c1d056d3ad7ed4dd469c78)
* [3.6] bpo-30347: Stop crashes when concurrently iterate over ↵Miss Islington (bot)2017-09-261-36/+31
| | | | | itertools.groupby() iterators. (GH-1557) (#3770) (cherry picked from commit c740e4fe8a9bc5815dc18c38d7f7600b128c3c51)
* [3.6] bpo-31311: Fix a SystemError and a crash in ↵Miss Islington (bot)2017-09-251-0/+10
| | | | | ctypes._CData.__setstate__(), in case of a bad __dict__. (GH-3254) (#3743) (cherry picked from commit 57c2561c8c5663aef55b00e3f29cba575ff36ccd)
* [3.6] bpo-27385: Clarify docstring for groupby() (GH-3738) (#3744)Miss Islington (bot)2017-09-251-2/+3
| | | (cherry picked from commit 49392c63a243052c8013bef80d35202bb6d7c404)
* [3.6] bpo-25359: Add missed "goto error" after setting an exception. ↵Miss Islington (bot)2017-09-241-0/+1
| | | | | (GH-3712) (#3714) (cherry picked from commit d6238a76c655e0feb13478505220dc9049f1682f)
* [3.6] closes bpo-31532: Fix memory corruption due to allocator mix (GH-3679) ↵Miss Islington (bot)2017-09-211-1/+1
| | | | | | | | | | | | | | (#3681) Fix a memory corruption in getpath.c due to mixed memory allocators between Py_GetPath() and Py_SetPath(). The fix use the Raw allocator to mimic the windows version. This patch should be used from python3.6 to the current version for more details, see the bug report and https://github.com/pyinstaller/pyinstaller/issues/2812 (cherry picked from commit 3d1e2ab584ed0175592b5be2a0bc98dc1723776a)
* [3.6] bpo-31293: Fix crashes in truediv and mul of a timedelta by a float ↵Miss Islington (bot)2017-09-191-4/+33
| | | | | with a bad as_integer_ratio() method. (GH-3227) (#3654) (cherry picked from commit 865e4b4f630e2ae91e61239258abb58b488f1d65)
* [3.6] bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (GH-3641) (#3645)Miss Islington (bot)2017-09-181-1/+5
| | | | | | | | | | * bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit e727d41ffcd91b21ce82026ec8c8381d34a16209)
* [3.6] bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). ↵Miss Islington (bot)2017-09-141-2/+33
| | | | | | | | (GH-3545) (#3585) * Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. * Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions. (cherry picked from commit c8d8e15bfc24abeeaaf3d8be9073276b0c011cdf)
* [3.6] bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in ↵Miss Islington (bot)2017-09-141-1/+5
| | | | | case env has a bad keys() method. (GH-3580) (#3584) (cherry picked from commit 0b3a87ef54a0112b74e8a1d8c6f87d10db4239ab)
* [3.6] _ssl_: Fix compiler warning (GH-3559) (#3569)Christian Heimes2017-09-141-0/+6
| | | | | | | | Cast Py_buffer.len (Py_ssize_t, signed) to size_t (unsigned) to prevent the following warning: Modules/_ssl.c:3089:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]. (cherry picked from commit 5a61559fb0776a9a0f08294ec9003cea13940430)
* [3.6] bpo-30246: fix several error messages which only mention bytes in ↵Xiang Zhang2017-09-141-4/+5
| | | | struct (#3561)