summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)Miss Islington (bot)2021-12-051-13/+10
| | | | | | | Getting an attribute via attrib.get() simultaneously with replacing the attrib dict can lead to access to deallocated dict. (cherry picked from commit d15cdb2f32f572ce56d7120135da24b9fdce4c99) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong ↵Miss Islington (bot)2021-11-271-2/+3
| | | | | | | | | | | | | (GH-29587) (GH-29811) * Fix thread lock in zlib.Decompress.flush() may go wrong Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state. (cherry picked from commit 7edb6270a78c695e4c2ae2432797dc18105374fc) Co-authored-by: Ma Lin <animalize@users.noreply.github.com> Automerge-Triggered-By: GH:gpshead
* [3.10] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29773)Miss Islington (bot)2021-11-254-18/+31
| | | | | | | | (cherry picked from commit dc19e8698327cae3d6274b73c135375955f1d0d0) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* [3.10] bpo-45822: Respect PEP 263's coding cookies in the parser even if ↵Pablo Galindo Salgado2021-11-171-0/+14
| | | | | | | flags are not provided (GH-29582) (GH-29586) (cherry picked from commit da20d7401de97b425897d3069f71f77b039eb16f) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-45634: Don't combine error checks when adding `sqlite3` int ↵Erlend Egeberg Aasland2021-10-311-43/+50
| | | | constants (GH-29251). (GH-29343)
* [3.10] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals ↵Łukasz Langa2021-10-291-0/+4
| | | | | | | memory error (GH-29171) (GH-29323) (cherry picked from commit e2e62b3808691e15fa44b883270023e42dcad958) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)Miss Islington (bot)2021-10-221-1/+1
| | | | | (cherry picked from commit f6e8b80d20159596cf641305bad3a833bedd2f4f) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)Miss Islington (bot)2021-10-201-2/+3
| | | | | (cherry picked from commit d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad) Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
* [3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the ↵Serhiy Storchaka2021-10-142-10/+21
| | | | | | | | | | | "raw-unicode-escape" codec (GH-28944) (GH-28952) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.raw_unicode_escape_decode(). It is True by default to match the former behavior. (cherry picked from commit 39aa98346d5dd8ac591a7cafb467af21c53f1e5d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the ↵Miss Islington (bot)2021-10-142-10/+21
| | | | | | | | | | | | "unicode-escape" codec (GH-28939) (GH-28943) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.unicode_escape_decode(). It is True by default to match the former behavior. (cherry picked from commit c96d1546b11b4c282a7e21737cb1f5d16349656d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] no-issue: Make silence about warning '_POSIX_C_SOURCE redefined' ↵Dong-hee Na2021-10-141-4/+4
| | | | (GH-28948) (GH-28951)
* [3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 ↵Dong-hee Na2021-10-091-0/+6
| | | | (GH-28832) (GH-28834)
* bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)Miss Islington (bot)2021-10-091-8/+38
| | | | | (cherry picked from commit 34bbc87b2ddbaf245fbed6443c3e620f80c6a843) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)Miss Islington (bot)2021-10-081-0/+3
| | | | | | Prevent use-after-free of running loop holder via cache. (cherry picked from commit 392a89835371baa0fc4bf79ae479abb80661f57d) Co-authored-by: Matthias Reichl <github@hias.horus.com>
* [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)Miss Islington (bot)2021-10-0719-21/+21
| | | | | | | | (cherry picked from commit dd02a696e55b450413e765e698e653d781ca4205) Co-authored-by: Christian Clauss <cclauss@me.com> Automerge-Triggered-By: GH:gpshead
* bpo-44050: Extension modules can share state when they don't support ↵Miss Islington (bot)2021-10-051-0/+22
| | | | | | | | sub-interpreters. (GH-27794) (GH-28738) Automerge-Triggered-By: GH:encukou (cherry picked from commit b9bb74871b27d9226df2dd3fce9d42bda8b43c2b) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* [3.10] Remove trailing spaces (GH-28709)Serhiy Storchaka2021-10-034-4/+4
|
* bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)Miss Islington (bot)2021-10-021-1/+1
| | | | | (cherry picked from commit 0742abdc48886b74ed3b66985a54bb1c32802670) Co-authored-by: TAGAMI Yukihiro <tagami.yukihiro@gmail.com>
* bpo-44687: Ensure BufferedReader objects with unread buffers can peek even ↵Miss Islington (bot)2021-10-011-3/+5
| | | | | | | when the underlying file is closed (GH-28457) (cherry picked from commit a450398933d265011e1e8eae7f771b70f97945fb) Co-authored-by: AngstyDuck <solsticedante@gmail.com>
* bpo-45332: Fix broken Decimal test and benchmark (GH-28680)Miss Islington (bot)2021-10-013-6/+3
| | | | | (cherry picked from commit 9eed75fde226cec5a02301cfac1dc8039b5a183e) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* hashlib: Fix old message about unicode objects. (GH-28653)Miss Islington (bot)2021-10-011-1/+1
| | | | | (cherry picked from commit 9ce0f48e918860ffa32751a85b0fe7967723e2e3) Co-authored-by: Julien Palard <julien@palard.fr>
* closes bpo-44751: Move crypt.h include from public header to _cryptmodule ↵Miss Islington (bot)2021-09-291-0/+3
| | | | | | | | (GH-27394) (GH-28636) Automerge-Triggered-By: GH:benjaminp (cherry picked from commit 196998e220d6ca030e5a1c8ad63fcaed8e049a98) Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
* bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595)Miss Islington (bot)2021-09-281-8/+3
| | | | | (cherry picked from commit 84975146a7ce64f1d50dcec8311b7f7188a5c962) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)Łukasz Langa2021-09-215-7/+7
| | | | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29) Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
* bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)Miss Islington (bot)2021-09-171-8/+8
| | | | | (cherry picked from commit 773319545ba60577bc140aa46eac83b360240b7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-45126: Fix ref. leak in `sqlite3.Connection.__init__` (GH-28231). ↵Erlend Egeberg Aasland2021-09-131-0/+1
| | | | (GH-28298)
* bpo-45067 - Verify the version of ncurses for extended color support feature ↵Miss Islington (bot)2021-09-091-2/+2
| | | | | | | | | | | | | | | | | usage. (GH-28260) * issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses for extended color support feature usage. The function extended_color_content was introduced in 2017. The ncurses-devel package in CentOS 7 had a older version ncurses resulted in compilation error. For compiling ncurses with extended color support, we verify the version of the ncurses library. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 794430700defb913512f871b701a888aa730de81) Co-authored-by: Senthil Kumaran <senthil@python.org>
* bpo-44219: Release the GIL during isatty syscalls (GH-28250) (GH-28255)Miss Islington (bot)2021-09-091-0/+2
| | | | | | | | | Release the GIL while performing isatty() system calls on arbitrary file descriptors. In particular, this affects os.isatty(), os.device_encoding() and io.TextIOWrapper. By extension, io.open() in text mode is also affected. (cherry picked from commit 06148b1870fceb1a21738761b8e1ac3bf654319b) Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
* Remove documentation for non-existing socket class attributes (GH-28029)Miss Islington (bot)2021-09-071-3/+0
| | | | | | The functions in question are available on the module-level only. (cherry picked from commit 34d82ce7cb82a8f5e2e83417d66d9aa319f3bb69) Co-authored-by: Matti Picus <matti.picus@gmail.com>
* Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) ↵Miss Islington (bot)2021-09-061-1/+1
| | | | | (GH-27997) (cherry picked from commit 28db1f61f20352c02e4ae1518e5aeb6505df3045)
* [3.10] bpo-45060: Get rid of few uses of the equality operators with None ↵Serhiy Storchaka2021-09-042-4/+4
| | | | | | | (GH-28087). (GH-28092) (cherry picked from commit 3c65457156d87e55010507d616b4eecb7a02883d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries ↵Miss Islington (bot)2021-08-301-3/+26
| | | | | | | | when built on older macOS systems (GH-27251) Previously, when built on older macOS systems, `find_library` was not able to find macOS system libraries when running on Big Sur due to changes in how system libraries are stored. (cherry picked from commit 71853a73024a98aa38a3c0444fe364dbd9709134) Co-authored-by: Tobias Bergkvist <tobias@bergkv.ist>
* bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)Miss Islington (bot)2021-08-2920-177/+1368
| | | | | | | | | | Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy is most used on Windows and macOS. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 3fc5d84046ddbd66abac5b598956ea34605a4e5d) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-27334: roll back transaction if sqlite3 context manager fails to ↵Erlend Egeberg Aasland2021-08-281-7/+22
| | | | commit (GH-26202) (GH-27943)
* bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904)Miss Islington (bot)2021-08-231-8/+16
| | | | | | Test also PyObject_Repr(NULL) and PyObject_Bytes(NULL). (cherry picked from commit 4d689173861257c69adc6dc1dca4171946ddb57f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44822: Don't truncate `str`s with embedded NULL chars returned by ↵Miss Islington (bot)2021-08-061-3/+10
| | | | | | | `sqlite3` UDF callbacks (GH-27588) (cherry picked from commit 8f010dc920e1f6dc6a357e7cc1460a7a567c05c6) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)Miss Islington (bot)2021-07-304-4/+4
| | | | | (cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
* [3.10] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised ↵Erlend Egeberg Aasland2021-07-301-7/+22
| | | | | | | (GH-27431). (GH-27472) (cherry picked from commit 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl ↵Miss Islington (bot)2021-07-281-1/+1
| | | | | | | (GH-19501) (cherry picked from commit 92b5dc780db968f6277f42cb06926dddb7475dc6) Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-261-1/+1
| | | | | | | | (GH-27380) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and ↵Miss Islington (bot)2021-07-232-12/+12
| | | | | | | | | _ssl._SSLSocket.write (GH-27271) (GH-27308) (cherry picked from commit 83d1430ee5b8008631e7f2a75447e740eed065c1) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make ↵Miss Islington (bot)2021-07-231-2/+1
| | | | | | | | | | | | | | | Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260) (GH-27306) * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG The field is always present in the type struct, as explained in the added comment. * Remove Py_TPFLAGS_HAVE_AM_SEND The flag is not needed, and since it was added in 3.10 it can be removed now. (cherry picked from commit a4760cc32d9e5dac7be262e9736eb30502cd7be3) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)Miss Islington (bot)2021-07-141-0/+4
| | | | | (cherry picked from commit d59d7374a364c4e5c2b9a83d8e4543ee494285b8) Co-authored-by: Shane Harvey <shnhrv@gmail.com>
* [3.10] Fix docstring typo in ↵Erlend Egeberg Aasland2021-07-144-8/+8
| | | | | | | | sqlite3.Connection.executescript/sqlite3.Cursor.executescript (GH-27147) (GH-27151) Both `executescript` methods contain the same docstring typo: _"Executes a multiple SQL statements at once."_ => _"Executes multiple SQL statements at once."_ Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107)Miss Islington (bot)2021-07-141-1/+3
| | | | | | if it is called with a sequence or set, but not list or tuple. (cherry picked from commit f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-44630: Fix assertion errors in csv module (GH-27127) (GH-27129)Miss Islington (bot)2021-07-131-4/+8
| | | | | | | | | | | | | | | | | | | Fix incorrect handling of exceptions when interpreting dialect objects in the csv module. Not clearing exceptions between calls to PyObject_GetAttrString() causes assertion failures in pydebug mode (or with assertions enabled). Add a minimal test that would've caught this (passing None as dialect, or any object that isn't a csv.Dialect subclass, which the csv module allows and caters to, even though it is not documented.) In pydebug mode, the test triggers the assertion failure in the old code. Contributed-By: T. Wouters [Google] (cherry picked from commit 0093876328afa330224c9d887c18dee0b3117852) Co-authored-by: T. Wouters <thomas@python.org> Automerge-Triggered-By: GH:gpshead
* bpo-29753: revert 0d7ad9f (GH-19850) (GH-27085)Miss Islington (bot)2021-07-111-27/+8
| | | | | | | | This reverts commit 0d7ad9fb38c041c46094087b0cf2c8ce44916b11 as it has a regression. See https://github.com/python/cpython/pull/19850GH-issuecomment-869410686 (cherry picked from commit e14d5ae5447ae28fc4828a9cee8e9007f9c30700) Co-authored-by: Filipe Laíns <lains@archlinux.org>
* bpo-44582: Accelerate mimetypes.init on Windows with a native accelerator ↵Miss Islington (bot)2021-07-082-1/+145
| | | | | | | (GH-27059) (cherry picked from commit bbf2fb6c7ae78f40483606f467739a58cd747270) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-44558: Match countOf `is`/`==` treatment to c (GH-27007)Miss Islington (bot)2021-07-072-4/+4
| | | | | (cherry picked from commit 6bd3ecfc272b122b55a6adec50dd7a7c868f262f) Co-authored-by: Rupert Tombs <rupert.tombs@gmail.com>
* bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27041)Miss Islington (bot)2021-07-051-9/+10
| | | | | | | | In debug build failed tee.fromiterable() corrupted the linked list of all GC objects. (cherry picked from commit f64de53ff01e734d48d1d42195443d7d1646f220) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>