summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.10] gh-98086: Now ``patch.dict`` can decorate async functions (GH-98095) ↵Miss Islington (bot)2022-11-201-0/+1
| | | | | | | | | (GH-99366) gh-98086: Now ``patch.dict`` can decorate async functions (GH-98095) (cherry picked from commit 67b4d2772c5124b908f8ed9b13166a79bbeb88d2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Chris Withers <chris@withers.org>
* [3.10] Remove trailing space to fix azure failures (#99611)Stanley2022-11-201-2/+2
|
* gh-87604: Avoid publishing list of active per-interpreter audit hooks via ↵Miss Islington (bot)2022-11-151-0/+2
| | | | | | | the gc module (GH-99373) (cherry picked from commit 4e4b13e8f6211abbc0d53056da11357756daa314) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.10] gh-92119: ctypes: Print exception class name instead of its ↵Kamil Turek2022-11-131-0/+2
| | | | | | | representation (GH-98302) (#99452) gh-92119: ctypes: Print exception class name instead of its representation (#98302) (cherry picked from commit b9dedfe61dce2997e3e6be318d8c50b0c19c9394)
* gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283)Miss Islington (bot)2022-11-131-0/+2
| | | | | (cherry picked from commit 343eb0f94b26f2a4c1c15505d417e8157ec19660) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-34272: Reorganize C API tests. (GH-8551)Miss Islington (bot)2022-11-121-0/+1
| | | | | | Move some C API tests into Lib/test/test_capi/. (cherry picked from commit f883b7f8ee3209b52863fc662343c8cd81abdc59) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-80448: argparse: Fix IndexError on store_true action (GH-15656)Miss Islington (bot)2022-11-121-0/+1
| | | | | | | | (cherry picked from commit e02cc6d42aee1f0a9ee629f76576eee478224d9d) Co-authored-by: Hai Shi <shihai1992@gmail.com> Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-99130: Apply bugfixes from importlib_metadata 4.11.4. (#99132)Jason R. Coombs2022-11-101-0/+7
|
* gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736)Miss Islington (bot)2022-11-101-0/+1
| | | | | (cherry picked from commit dbf2faf579b4094387d65ee41f049456ca67c446) Co-authored-by: Anton Ryzhov <anton@ryzhov.me>
* [3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222)Miss Islington (bot)2022-11-081-0/+6
| | | | | | | | | | | There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. (cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d) (cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15) Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-38523: ignore_dangling_symlinks does not apply recursively (GH-22937)Miss Islington (bot)2022-11-071-0/+2
| | | | | (cherry picked from commit 5ff81da6d3a8eb01fc5500fd1c9eaa6543286301) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.10] [ GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols ↵Miss Islington (bot)2022-11-071-0/+1
| | | | (GH-99156). (GH-99188) (GH-99190)
* gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162)Miss Islington (bot)2022-11-071-0/+2
| | | | | (cherry picked from commit f626b7b504df454d289527a4f922b09deeae9e21) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* [3.10] gh-99086: Fix implicit int compiler warning in configure check for ↵Erlend E. Aasland2022-11-061-0/+1
| | | | | | | | | PTHREAD_SCOPE_SYSTEM (GH-99085) (#99119) (cherry picked from commit 12078e78f6e4a21f344e4eaff529e1ff3b97734f) Co-authored-by: Sam James <sam@cmpct.info> Co-authored-by: Sam James <sam@cmpct.info>
* gh-83004: Clean up refleak in _pickle initialisation (GH-98841)Miss Islington (bot)2022-11-061-0/+1
| | | | | (cherry picked from commit d3b82b4463c4eb51954c0afd98342f0c5e479baa) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-83004: Clean up refleak in _zoneinfo initialisation (GH-98842)Miss Islington (bot)2022-11-061-0/+1
| | | | | (cherry picked from commit 31f2f6568d89564cc1d686cd6b75ba5578aaa748) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-99134: Update bundled pip to 22.3.1 (gh-99135)Miss Islington (bot)2022-11-051-0/+1
| | | | | | Update bundled pip to 22.3.1 (cherry picked from commit 47ab8480e71ab3949a336a94c7fd146b1fce595d) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* gh-83004: Clean up refleak in _io initialisation (GH-98840)Miss Islington (bot)2022-11-031-0/+1
| | | | | (cherry picked from commit 1208037246eeab4c5c003f1651edfefb045e6fb7) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-98740: Fix validation of conditional expressions in RE (GH-98764) ↵Serhiy Storchaka2022-11-031-0/+3
| | | | | | | | | | | | | | | | (GH-99046) In very rare circumstances the JUMP opcode could be confused with the argument of the opcode in the "then" part which doesn't end with the JUMP opcode. This led to incorrect detection of the final JUMP opcode and incorrect calculation of the size of the subexpression. NOTE: Changed return value of functions _validate_inner() and _validate_charset() in Modules/_sre/sre.c. Now they return 0 on success, -1 on failure, and 1 if the last op is JUMP (which usually is a failure). Previously they returned 1 on success and 0 on failure. (cherry picked from commit e9ac890c0273aee413aa528cc202c3efa29f1d7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] gh-97731: Specify the full path to the docs for `make docclean` ↵Miss Islington (bot)2022-11-021-0/+2
| | | | | | | (GH-98982) (#99025) Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds. (cherry picked from commit 22bab74c8f5fa6d53ddb7e40baa4334d09331c0f)
* gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)Miss Islington (bot)2022-11-021-0/+1
| | | | | | | | | | | | The uuid.getnode() function has multiple implementations, tested sequentially. The ifconfig implementation was incorrect and always failed: fix it. In practice, functions of libuuid library are preferred, if available: uuid_generate_time_safe(), uuid_create() or uuid_generate_time(). (cherry picked from commit e3ec272f57c3948834a6159cf2604978d3db67a0) Co-authored-by: Chaim Sanders <csanders-git@users.noreply.github.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* gh-98689: Update Windows builds to zlib v1.2.13 (GH-98968)Miss Islington (bot)2022-11-011-0/+2
| | | | | (cherry picked from commit c0859743d9ad3bbd4c021200f4162cfeadc0c17a) Co-authored-by: Zachary Ware <zach@python.org>
* [3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) ↵Serhiy Storchaka2022-11-011-0/+3
| | | | | | | (GH-98969) Fix subscription of types.GenericAlias instances containing bare generic types: for example tuple[A, T][int], where A is a generic type, and T is a type variable.
* GH-98897: fix memory leak if `math.dist` raises exception (GH-98898)Miss Islington (bot)2022-11-011-0/+1
| | | | | (cherry picked from commit ab575050709e2b313ca9a9585f09b6f4b0560318) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] gh-98793: Fix typecheck in `overlapped.c` (GH-98835) (#98890)Charlie Zhao2022-10-311-0/+1
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 3ac8c0ab6ee819a14b1c8e0992acbaf376a46058)
* [3.10] gh-96151: Use a private name for passing builtins to dataclass. This ↵Miss Islington (bot)2022-10-311-0/+1
| | | | | | | | | | now allows for a field named BUILTIN (gh-98143) (gh-98899) gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143) (cherry picked from commit 29f98b46b77ee528477b9a7b335974b9682f7f14) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640) ↵Erlend E. Aasland2022-10-281-0/+1
| | | | | | | | (#98678) (cherry picked from commit 0c84593275969d9b8f42e75abb2638b69d5b5f4a) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.10] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) (#98798)Miss Islington (bot)2022-10-281-0/+2
| | | | | (cherry picked from commit 0346eddbe933b5f1f56151bdebf5bd49392bc275) Co-authored-by: noah-weingarden <33741795+noah-weingarden@users.noreply.github.com>
* [3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)samypr1002022-10-281-0/+3
|
* gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)Miss Islington (bot)2022-10-271-0/+1
| | | | | | | | * Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680. Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com> (cherry picked from commit 3e07f827b359617664ad0880f218f17ae4483299) Co-authored-by: Shaun Walbridge <46331011+scdub@users.noreply.github.com>
* gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple ↵Miss Islington (bot)2022-10-271-0/+2
| | | | | | | | times (GH-98704) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 8a755423eba8e19704d96905730cf7f50083eb23) Co-authored-by: Ken Jin <kenjin@python.org>
* [3.10] Change links to label refs (GH-98454) (#98726)Stanley2022-10-261-2/+1
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-93696: Locate frozen module source with __file__ (GH-93697)Miss Islington (bot)2022-10-251-0/+1
| | | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit d91de288e73c67805e4c838b5f770ab7ec3661f9) Co-authored-by: James Gerity <snoopjedi@gmail.com>
* [3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639) ↵Erlend E. Aasland2022-10-251-0/+1
| | | | | | | | (#98647) [3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639). (cherry picked from commit 8aa1e994a530e538a5433c8ada6500ffc1214467) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572)Miss Islington (bot)2022-10-241-0/+1
| | | | | (cherry picked from commit ad1dc3ebb6aadaeeeacde13d4ed2d62bf302bf62) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519)Theo Buehler2022-10-211-0/+1
| | | | | | | | | | This is a port of the applicable part of XKCP's fix [1] for CVE-2022-37454 and avoids the segmentation fault and the infinite loop in the test cases published in [2]. [1]: https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a [2]: https://mouha.be/sha-3-buffer-overflow/ Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* [3.10] gh-97514: Don't use Linux abstract sockets for multiprocessing ↵Miss Islington (bot)2022-10-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | (GH-98501) (GH-98503) Linux abstract sockets are insecure as they lack any form of filesystem permissions so their use allows anyone on the system to inject code into the process. This removes the default preference for abstract sockets in multiprocessing introduced in Python 3.9+ via https://github.com/python/cpython/pull/18866 while fixing https://github.com/python/cpython/issues/84031. Explicit use of an abstract socket by a user now generates a RuntimeWarning. If we choose to keep this warning, it should be backported to the 3.7 and 3.8 branches. (cherry picked from commit 49f61068f49747164988ffc5a442d2a63874fc17) Co-authored-by: Gregory P. Smith <greg@krypto.org> Automerge-Triggered-By: GH:gpshead
* gh-96035: Make urllib.parse.urlparse reject non-numeric ports (GH-98273)Miss Islington (bot)2022-10-201-0/+3
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 6f15ca8c7afa23e1adc87f2b66b958b721f9acab) Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
* gh-97928: Fix handling options starting with "-" in tkinter.Text.count() ↵Miss Islington (bot)2022-10-191-0/+2
| | | | | | | | (GH-98436) Previously they were silently ignored. Now they are errors. (cherry picked from commit e4ec8de6fa6f0a07e64f6a3e3f894926b4b0652d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] gh-93858: Prevent error when activating venv in nested fish instances ↵Miss Islington (bot)2022-10-181-0/+1
| | | | | (GH-93931) (GH-98403) Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
* [3.10] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98399)Miss Islington (bot)2022-10-181-0/+1
|
* gh-97527: IDLE - fix buggy macosx patch (GH-98313)Miss Islington (bot)2022-10-161-0/+3
| | | | | | | | | GH-97530 fixed IDLE tests possibly crashing on a Mac without a GUI. But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and Microsoft Python 3.10.2288.0 when test/* is not installed. After this patch, test.* is only imported when testing on Mac. (cherry picked from commit 35fa5d5e7f2b0971b39b2659dc70cb77e34a7dd6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95731: Fix module docstring extraction in pygettext (GH-95732)Miss Islington (bot)2022-10-151-0/+1
| | | | | (cherry picked from commit 120b4ab2b68aebf96ce0de243eab89a25fc2d282) Co-authored-by: Jakub Kuczys <me@jacken.men>
* gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip ↵Miss Islington (bot)2022-10-141-0/+2
| | | | | | | when they do not impact path resolution (GH-98259) (cherry picked from commit 2fe44f728afa2dd506c304641f0481d6813d1dbd) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)Miss Islington (bot)2022-10-131-0/+1
| | | | | | | Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de> Co-authored-by: July Tikhonov <july.tikh@gmail.com> (cherry picked from commit c9ed0327a9c741a1808926b409df29467baf303a) Co-authored-by: Christoph Hamsen <37963496+xopham@users.noreply.github.com>
* gh-98178: syslog() is not thread-safe on macOS (GH-98213)Miss Islington (bot)2022-10-131-0/+4
| | | | | | | | | On macOS, fix a crash in syslog.syslog() in multi-threaded applications. On macOS, the libc syslog() function is not thread-safe, so syslog.syslog() no longer releases the GIL to call it. (cherry picked from commit d4b91663857e85eab1f309cacec4d27b5f6657ec) Co-authored-by: Victor Stinner <vstinner@python.org>
* Python 3.10.8v3.10.8Pablo Galindo2022-10-1147-93/+474
|
* [3.10] bpo-43564: preserve original exception in args of FTP URLError ↵Senthil Kumaran2022-10-101-0/+3
| | | | | | | | | | | | | | (GH-24938) (#98138) * bpo-43564: preserve original error in args of FTP URLError * Add NEWS blurb Co-authored-by: Carl Meyer <carljm@instagram.com>. (cherry picked from commit ad817cd5c44416da3752ebf9baf16d650703275c) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-96073: fix backticks in NEWS entry (GH-98056)Miss Islington (bot)2022-10-071-1/+1
| | | | | | Automerge-Triggered-By: GH:JelleZijlstra (cherry picked from commit 0f111f53c1815766583ca9d5c06671ad89abcb77) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-96073: Fix wild replacement in inspect.formatannotation (GH-96074)Miss Islington (bot)2022-10-071-0/+1
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit d5fea01d9d439b1638cd8e5db19c33909841d86f) Co-authored-by: Anh71me <iyumelive@gmail.com>