summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.10] bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013)Gregory P. Smith2022-03-201-9/+13
| | | | | Inputs >= 4GiB to `binascii.crc32(...)` when compiled to use the zlib crc32 implementation (the norm on POSIX) no longer return the wrong result.
* [3.10] bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961). ↵Pablo Galindo Salgado2022-03-181-3/+3
| | | | | | | (GH-31974) (cherry picked from commit 8e3fde728f547f1d32bde8adf62b4c50bb877b9d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] sqlite3: normalise pre-acronym determiners (GH-31772) (GH-31806)Jelle Zijlstra2022-03-122-7/+7
| | | | | | | For consistency, replace "a SQL" with "an SQL".. (cherry picked from commit 2d5835a019a46573d5b1b614c8ef88d6b564d8d4) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31830)Victor Stinner2022-03-111-6/+20
| | | | | | | | | | | | | | | In Linux kernel 5.14 one can dynamically request size of altstacksize based on hardware capabilities with getauxval(AT_MINSIGSTKSZ). This changes allows for Python extension's request to Linux kernel to use AMX_TILE instruction set on Sapphire Rapids Xeon processor to succeed, unblocking use of the ISA in frameworks. Introduced HAVE_LINUX_AUXVEC_H in configure.ac and pyconfig.h.in Used cpython_autoconf:269 docker container to generate configure. (cherry picked from commit 3b128c054885fe881c3b57a5978de3ea89c81a9c) Co-authored-by: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com>
* [3.10] Docstring: replace pysqlite with sqlite3 (GH-31758) (GH-31777)Jelle Zijlstra2022-03-092-7/+7
| | | | | | | Replace two instances of "pysqlite" with "sqlite3" in sqlite3 docstrings. Also reword "is a no-op" to "does nothing" for clarity.. (cherry picked from commit b33a1ae703338e09dc0af5fbfd8ffa01d3ff75da) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-23325: Fix SIG_IGN and SIG_DFL int comparison in signal module (GH-31759)Miss Islington (bot)2022-03-081-13/+23
| | | | | (cherry picked from commit c8a47e76a391c8818bf10a282cdcd3bb5c23ebf6) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) ↵Erlend Egeberg Aasland2022-03-086-69/+67
| | | | | (GH-31753) (cherry picked from commit 4d95fa1ac5d31ff450fb2f31b55ce1eb99d6efcb)
* bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736)Miss Islington (bot)2022-03-072-14/+155
| | | | | (cherry picked from commit 176835c3d5c70f4c1b152cc2062b549144e37094) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)Miss Islington (bot)2022-03-042-3/+2
| | | | | (cherry picked from commit cedd2473a9bebe07f3ced4f341cf58a2fef07b03) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* [3.10] bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan ↵Victor Stinner2022-03-041-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-31675) * bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662) Disable undefined behavior sanitizer (UBSAN) on faulthandler_sigfpe(). (cherry picked from commit 4173d677a1d7c72bb32d292fbff1b4cf073d615c) * bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672) Disable undefined behavior sanitizer (UBSan) on faulthandler._read_null(). (cherry picked from commit 65b92ccdec2ee4a99e54aaf7ae2d9bbc2ebfe549) * bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673) If Python is built with UBSan, test_hashlib skips tests on the _sha3 extension which currently has undefined behaviors. This change allows to run test_hashlib to check for new UBSan regression, but the known _sha3 undefined behavior must be fixed. (cherry picked from commit 6d0d7d2b8c1e04fd51c6cb29cc09a41b60b97b7b) * bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674) If Python is built with UBSan, test_ctypes now skips test_shorts(). This change allows to run test_ctypes to check for new UBSan regression, but the known test_shorts() undefined behavior must be fixed. (cherry picked from commit ad1b04451d3aca2c6fa6dbe2891676a4e0baac49)
* bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)Miss Islington (bot)2022-02-235-62/+132
| | | | | (cherry picked from commit 1935e1cc284942bec8006287c939e295e1a7bf13) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-46232: Fix parsing of certs with bit string in DN (GH-30351)Miss Islington (bot)2022-02-211-7/+19
| | | | | (cherry picked from commit be095f6c32188bba02079d086ac8639ea37cec3c) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030)Erlend Egeberg Aasland2022-02-212-3/+14
| | | | | | | | | | | * [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642). (cherry picked from commit 3eb3b4f270757f66c7fb6dcf5afa416ee1582a4b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Fix test_func_return_too_large_int GH-27613 (bpo 44839) was not backported, so exceptions differ between main (3.11) and older versions.
* [3.10] bpo-46784: Add newly exported expat symbols to the namespace. ↵Gregory P. Smith2022-02-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | (GH-31397) (GH-31420) The libexpat 2.4.1 upgrade from introduced the following new exported symbols: * `testingAccountingGetCountBytesDirect` * `testingAccountingGetCountBytesIndirect` * `unsignedCharToPrintable` * `XML_SetBillionLaughsAttackProtectionActivationThreshold` * `XML_SetBillionLaughsAttackProtectionMaximumAmplification` We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h) (The newer libexpat upgrade has no new symbols). Automerge-Triggered-By: GH:gpshead (cherry picked from commit 6312c1052c0186b4596fc45c42fd3ade9f8f5911) Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com> Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
* bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31296)Dong-hee Na2022-02-175-31/+237
| | | Co-authored-by: Cyril Jouve <jv.cyril@gmail.com>
* [3.10] bpo-46728: fix docstring of combinations_with_replacement for ↵DongGeon Lee2022-02-152-4/+4
| | | | consistency (GH-31293) (GH-31350)
* bpo-45948: Remove constructor discrepancy in C version of ↵Miss Islington (bot)2022-02-122-5/+5
| | | | | | | | ElementTree.XMLParser (GH-31152) Both implementations accept target=None now. (cherry picked from commit 168fd6453b5de15236116f9261d64601d92571ac) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.10] bpo-46433: _PyType_GetModuleByDef: handle static types in MRO ↵Petr Viktorin2022-02-112-4/+52
| | | | | | | (GH-30696) (GH-31262) (cherry picked from commit 0ef08530124c5ca13a9394f4ac18bee8e6c66409)
* bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)Miss Islington (bot)2022-02-071-0/+1
| | | | | | va_end() must be called before returning. (cherry picked from commit 59e004af63742361b67d1e1ae70229ff0db1059d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.10] bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851) ↵Christian Heimes2022-01-261-7/+0
| | | | | (GH-30914) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-46469: Make asyncio generic classes return GenericAlias ↵Miss Islington (bot)2022-01-221-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | (GH-30777) (#30784) * bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) * bpo-46469: Make asyncio generic classes return GenericAlias * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit ea5b96842e066623a53015d8b2492ed61a5baf96) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> * Fix tests Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.10] bpo-41857: mention timeout argument units in select.poll() and ↵Tal Einat2022-01-212-3/+15
| | | | | | | select.depoll() doc-strings (GH-22406) (cherry picked from commit 27df7566bc19699b967e0e30d7808637b90141f6) Co-authored-by: Zane Bitter <zbitter@redhat.com>
* bpo-46383: Fix signature of zoneinfo module_free function (GH-30607) (GH-30610)Miss Islington (bot)2022-01-171-1/+1
| | | | | | | (cherry picked from commit cfbde65df318eea243706ff876e5ef834c085e5f) Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Christian Heimes <christian@python.org>
* bpo-46280: Fix tracemalloc_copy_domain() (GH-30591)Miss Islington (bot)2022-01-141-0/+3
| | | | | | | Test if tracemalloc_copy_traces() failed to allocated memory in tracemalloc_copy_domain(). (cherry picked from commit 7c770d3350813a82a639fcb3babae0de2b87aaae) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584) ↵Miss Islington (bot)2022-01-131-1/+1
| | | | | | | | | | (GH-30585) (cherry picked from commit 276c234ce0fa6732237f1b187989837324d9dea3) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-46070: _PyGC_Fini() untracks objects (GH-30577)Miss Islington (bot)2022-01-131-0/+24
| | | | | | | | | | Py_EndInterpreter() now explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, calling PyObject_GC_UnTrack() on the object crashed if the previous or the next object of the PyGC_Head structure became a dangling pointer. (cherry picked from commit 1a4d1c1c9b08e75e88aeac90901920938f649832) Co-authored-by: Victor Stinner <vstinner@python.org>
* Define Py_BUILD_CORE_MODULEMiss Islington (bot)2022-01-131-232/+342
|
* bpo-46070: Fix asyncio initialisation guard (GH-30423)Miss Islington (bot)2022-01-071-6/+4
| | | | | | | If init flag is set, exit successfully immediately. If not, only set the flag after successful initialization. (cherry picked from commit b127e70a8a682fe869c22ce04c379bd85a00db67) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) ↵Miss Islington (bot)2021-12-111-1/+1
| | | | | | | (GH-29758) (cherry picked from commit abfc794bbf2c6a0939ddd81b6e700c46944ba87a) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-46000: Improve NetBSD curses compatibility (GH-29947)Miss Islington (bot)2021-12-101-2/+2
| | | | | (cherry picked from commit 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a) Co-authored-by: Thomas Klausner <tk@giga.or.at>
* bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)Miss Islington (bot)2021-12-091-2/+6
| | | | | (cherry picked from commit 3363e1cb05d0d19ed172ea63606d8cb6268747fc) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-46025: Fix a crash in the atexit module for auto-unregistering functions ↵Miss Islington (bot)2021-12-091-1/+4
| | | | | | | | | (GH-30002) (GH-30005) (cherry picked from commit f0d290d25cad66e615ada68ba190b8a23ac1deaa) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* 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>