summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.13] gh-117511: Make PyMutex public in the non-limited API (GH-117731) ↵Sam Gross2024-06-2018-110/+185
| | | | | (#120800) (cherry picked from commit 3af7263037de1d0ef63b070fc7bfc2cf042eaebe)
* [3.13] gh-119258: Backport optimizer frame fixes in GH-119365 (GH-120699)Ken Jin2024-06-205-35/+21
| | | (cherry picked from commit 55402d3)
* [3.13] GH-119462: Enforce invariants of type versioning. Backport of ↵Mark Shannon2024-06-207-86/+68
| | | | | GH-120731. (#120748) * Remove uses of Py_TPFLAGS_VALID_VERSION_TAG
* [3.13] Update the documentation howto index page and group docs into 3 ↵Miss Islington (bot)2024-06-204-5/+39
| | | | | | | | | | | | | | | logical sections (GH-119366, GH-120703) (GH-120646) Update the documentation howto index page and group docs into 3 logical sections (GH-119366) (cherry picked from commit a26d27e7ee512cd822b7a7ba075171152779ffdd) Includes a follow-up fix to properly merge GH-119877: * Add a link to free-threading HOWTO to the index (GH-120703) (cherry picked from commit 45d5cab533a607716b2b41134839a59facf309cd) Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.13] gh-119698: fix `symtable.Class.get_methods` and document its ↵Jelle Zijlstra2024-06-204-4/+187
| | | | | | | | behaviour correctly (GH-120151) (#120777) (cherry picked from commit b8a8e04fec76ad7f7c3e5149114dd2ee8a5caecc) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] Fix typos in comments (GH-120481) (#120774)Miss Islington (bot)2024-06-204-5/+5
| | | | | (cherry picked from commit 656a1c81083b76b9d998c983f4329348a65985d3) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
* [3.13] GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120768)Miss Islington (bot)2024-06-202-1/+3
| | | | | (cherry picked from commit 285f42c850da0d8ca31850088eb7b9247cbbbc71) Co-authored-by: Xarblu <xarblu@protonmail.com>
* [3.13] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH-120759)Miss Islington (bot)2024-06-191-0/+8
| | | | | | | gh-118820: Zero-valued flag enum has no name (GH-118848) (cherry picked from commit ed5ae6c4d76feaff06c2104c8ff864553b000253) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-120732: Fix `name` passing to `Mock`, when using kwargs to ↵Miss Islington (bot)2024-06-193-7/+13
| | | | | | | | `create_autospec` (GH-120737) (#120760) gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (cherry picked from commit 1e4815692f6c8a37a3974d0d7d2025494d026d76) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120757)Miss Islington (bot)2024-06-191-4/+4
| | | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.13] gh-120521: clarify except* documentation to allow tuples (GH-120523) ↵Miss Islington (bot)2024-06-191-9/+10
| | | | | | | | | (#120750) (cherry picked from commit 58b3f111767148e9011ccd52660e208f0c834b2a) Co-authored-by: Danny Yang <yangdanny97@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced ↵Nadeshiko Manju2024-06-193-2/+1
| | | | | | | | in gh-118322 (GH-120712) (#120747) [3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322 (GH-120712) Signed-off-by: Manjusaka <me@manjusaka.me> Co-authored-by: Ken Jin <kenjin4096@gmail.com>
* [3.13] gh-120635: Avoid leaking processes in test_pyrepl (GH-120676) (#120741)Miss Islington (bot)2024-06-191-1/+1
| | | | | | | | | | gh-120635: Avoid leaking processes in test_pyrepl (GH-120676) If the child process takes longer than SHORT_TIMEOUT seconds to complete, kill the process but then wait until it completes with no timeout to not leak child processes. (cherry picked from commit 0f3e36454d754026d6c510053ff1e4b22ae80cd9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120738)Miss Islington (bot)2024-06-193-2/+31
| | | | | (cherry picked from commit d8f27cb1141fd3575de816438ed80a916c0560ed) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.13] gh-119960: Add information about regex flags in re module functions ↵Miss Islington (bot)2024-06-191-0/+32
| | | | | | | | (GH-119978) (#120730) gh-119960: Add information about regex flags in re module functions (GH-119978) (cherry picked from commit a86e6255c371e14cab8680dee979a7393b339ce5) Co-authored-by: Awbert <119314310+SweetyAngel@users.noreply.github.com>
* [3.13] gh-120726: Fix compiler warnings on is_core_module() (GH-120727) ↵Miss Islington (bot)2024-06-192-4/+5
| | | | | | | | | | | | (#120729) gh-120726: Fix compiler warnings on is_core_module() (GH-120727) Fix compiler warnings on is_core_module() and check_interpreter_whence(): only define them when assertions are built. (cherry picked from commit a816cd67f43d9adb27ccdb6331e08c835247d1df) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.13] gh-119506: fix `_io.TextIOWrapper.write()` write during flush ↵Miss Islington (bot)2024-06-193-9/+45
| | | | | | | | | (GH-119507) (#119964) gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507) (cherry picked from commit 52586f930f62bd80374f0f240a4ecce0c0238174) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com> Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* [3.13] gh-120449: fix ``test_pyclbr`` introspection for mangled names ↵Miss Islington (bot)2024-06-192-17/+75
| | | | | | | | (GH-120450) (GH-120700) gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) (cherry picked from commit d8cd0fa4e347f460d0f3277e2392504e61ed087d) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120684)Miss Islington (bot)2024-06-194-10/+135
| | | | | | | | | | | The `inspect.ismethoddescriptor()` function did not check for the lack of `__delete__()` and, consequently, erroneously returned True when applied to *data* descriptors with only `__get__()` and `__delete__()` defined. (cherry picked from commit dacc5ac71a8e546f9ef76805827cb50d4d40cabf) Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* [3.13] gh-120633: Move scrollbar and remove tear-off menus in turtledemo ↵Miss Islington (bot)2024-06-192-4/+5
| | | | | | | | | (GH-120634) (#120725) gh-120633: Move scrollbar and remove tear-off menus in turtledemo (GH-120634) (cherry picked from commit 89f7208f672be635e923f04c19a7480eb8eb414c) Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.13] gh-120496: Add a note about iterator thread-safe (gh-120685) (#120706)Miss Islington (bot)2024-06-191-0/+3
| | | | | | gh-120496: Add a note about iterator thread-safe (gh-120685) (cherry picked from commit 7e189aed6450c0aebcdd6ff6aefe29e2f45b173a) Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.13] gh-120367: fix bug where compiler detects redundant jump after pseudo ↵Miss Islington (bot)2024-06-183-2/+28
| | | | op replacement (GH-120714) (#120716)
* [3.13] gh-117953: Skip `test_interpreters` properly without GIL (gh-120707)Miss Islington (bot)2024-06-181-3/+6
| | | | | (cherry picked from commit 1035fe0cfbeee23f61aed3332ebbae854e5da800, AKA gh-120689) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.13] gh-118789: Add `PyUnstable_Object_ClearWeakRefsNoCallbacks` ↵Miss Islington (bot)2024-06-188-4/+68
| | | | | | | | | | | | | | | | | (GH-118807) (#120695) This exposes `PyUnstable_Object_ClearWeakRefsNoCallbacks` as an unstable C-API function to provide a thread-safe mechanism for clearing weakrefs without executing callbacks. Some C-API extensions need to clear weakrefs without calling callbacks, such as after running finalizers like we do in subtype_dealloc. Previously they could use `_PyWeakref_ClearRef` on each weakref, but that's not thread-safe in the free-threaded build. (cherry picked from commit e8752d7b80775ec2a348cd4bf38cbe26a4a07615) Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.13] gh-120659: Skip `test_freethreading` with GIL (GH-120660) (#120694)Miss Islington (bot)2024-06-181-0/+4
| | | | | | gh-120659: Skip `test_freethreading` with GIL (GH-120660) (cherry picked from commit 360f14a493d8461d42dc646be40b4b6fb20db57a) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.13] gh-119241: Add HOWTO for free-threaded C API extensions (GH-119877) ↵Miss Islington (bot)2024-06-182-0/+255
| | | | | | | | | | | (#120693) Some sections adapted from https://github.com/Quansight-Labs/free-threaded-compatibility/ written by Nathan Goldbaum. (cherry picked from commit 02b272b7026b68e70b4a4d9a0ca080904aed374c) Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
* [3.13] gh-120662: Improve `smtplib` example (GH-120668) (#120681)Miss Islington (bot)2024-06-181-12/+11
| | | | | | | gh-120662: Improve `smtplib` example (GH-120668) (cherry picked from commit 4bc27abdbee88efcf9ada83de6e9e9a0e439edaf) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.13] gh-119897: Add test for lambda generator invocation (GH-120658) (#120673)Miss Islington (bot)2024-06-181-1/+5
| | | | | | | | | gh-119897: Add test for lambda generator invocation (GH-120658) (cherry picked from commit 73dc1c678eb720c2ced94d2f435a908bb6d18566) gh-120467: Add test for lambda generator invocation Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) ↵Miss Islington (bot)2024-06-181-8/+32
| | | | | | | | | | | (GH-120669) Mocking only works if sys.modules['pydoc'] and pydoc are the same, but some pydoc functions reload the module and change sys.modules. Ensure that sys.modules['pydoc'] is always restored after the corresponding tests. (cherry picked from commit 2cf47389e26cb591342d07dad98619916d5a1b15) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-120524: Avoid a Race On ↵Miss Islington (bot)2024-06-172-3/+4
| | | | | | | | | _PyRuntime.types.managed_static.types[i].interp_count (gh-120657) gh-120182 added new global state (interp_count), but didn't add thread-safety for it. This change eliminates the possible race. (cherry picked from commit 2c66318cdc0545da37e7046533dfe74bde129d91, AKA gh-120529) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-117657: Fix `__slots__` thread safety in free-threaded build ↵Miss Islington (bot)2024-06-174-12/+77
| | | | | | | | | (GH-119368) (#120655) Fix a race in `PyMember_GetOne` and `PyMember_SetOne` for `Py_T_OBJECT_EX`. These functions implement `__slots__` accesses for Python objects. (cherry picked from commit 362cd2680b45a36c3467b9721ff7fc0ceb338452) Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
* [3.13] gh-117657: Fix TSan reported data race on ioctl_works (GH-120175) ↵Miss Islington (bot)2024-06-172-4/+5
| | | | | | | (#120654) (cherry picked from commit 460cc9e14e221c53c0038a847bfd411fe184ebf3) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-115649: Copy the filename into main interpreter before intern in ↵Miss Islington (bot)2024-06-172-1/+13
| | | | | | | | | import.c (GH-120315) (#120652) gh-115649: Copy the filename into main interpreter before intern in import.c (GH-120315) (cherry picked from commit 28140d1f2da1766bfbb83f58779f15255c73c871) Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-120433: Mention ``chocolatey`` for installing llvm on Windows as ↵Miss Islington (bot)2024-06-171-0/+6
| | | | | | | | an alternative option (GH-120434) (#120651) gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an alternative option (GH-120434) (cherry picked from commit 95737bbf18765a24b6585708588c9b707dc30d27) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.13] gh-120367: fix removal of redundant NOPs and jumps after reordering ↵Miss Islington (bot)2024-06-173-12/+47
| | | | | | | | hot-cold blocks (GH-120425) (#120621) gh-120367: fix removal of redundant NOPs and jumps after reordering hot-cold blocks (GH-120425) (cherry picked from commit 21866c8ed296524f0ca175c0f55b43744c2b30df) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-119933: Improve ``SyntaxError`` message for invalid type ↵Jelle Zijlstra2024-06-179-55/+277
| | | | | | | parameters expressions (GH-119976) (#120641) (cherry picked from commit 4bf17c381fb7b465f0f26aecb94a6c54cf9be2d3) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-120586: Fix several "unused function" warnings in `posixmodule.c` ↵Miss Islington (bot)2024-06-171-1/+3
| | | | | | | | (GH-120588) (#120616) gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-120588) (cherry picked from commit 3df2022931f77c5cadb3f51b371be6ae17587ede) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] gh-112346: Document the OS byte in `gzip.compress` output change in ↵Miss Islington (bot)2024-06-172-1/+18
| | | | | | | | | | | 3.11 (GH-120480) (#120612) gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480) (cherry picked from commit bac4edad69bb20dd9460766e062637cae999e1e0) gh-112346: Describe the "os" byte in gzip output change. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.13] gh-120567: Clarify weekday return in calendar.monthrange docstring ↵Miss Islington (bot)2024-06-161-2/+2
| | | | | | | | | (GH-120570) (#120597) gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (cherry picked from commit bd4516d9efee109dd3b02a3d60845f9053fc6718) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.13] gh-118596: Add thread-safety clarifications to the SSLContext ↵Miss Islington (bot)2024-06-161-0/+13
| | | | | | | | | | | | | documentation (GH-118597) (#120595) gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597) Add thread-safety clarifications to the SSLContext documentation. Per the issue: This issue has also come up [here](https://github.com/psf/requests/pull/6667) where the matter was clarified by @tiran in [this comment](https://github.com/psf/requests/pull/6667): > `SSLContext` is designed to be shared and used for multiple connections. It is thread safe as long as you don't reconfigure it once it is used by a connection. Adding new certs to the internal trust store is fine, but changing ciphers, verification settings, or mTLS certs can lead to surprising behavior. The problem is unrelated to threads and can even occur in a single-threaded program. (cherry picked from commit 4f59f8638267aa64ad2daa0111d8b7fdc2499834) Co-authored-by: mm-matthias <43849132+mm-matthias@users.noreply.github.com>
* [3.13] gh-119824: Print stack entry when user input is needed (GH-119882) ↵Tian Gao2024-06-163-19/+82
| | | | | (#120533) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-120584: Fix "unused thread_critical_sections" warning in ↵Miss Islington (bot)2024-06-161-1/+1
| | | | | | | | `test_critical_sections` (GH-120585) (#120592) gh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sections` (GH-120585) (cherry picked from commit b337aefd3e44f5c8e38cd282273359d07cce6126) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] Docs: remove temporary hardcoded links (GH-120348) (#120587)Miss Islington (bot)2024-06-161-34/+1
| | | | | | Docs: remove temporary hardcoded links (GH-120348) (cherry picked from commit b8484c6ad7fd14ca464e584b79821b4b906dd77a) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.13] gh-120579: Guard `_testcapi` import in `test_free_threading` ↵Miss Islington (bot)2024-06-161-1/+6
| | | | | | | | (GH-120580) (#120583) gh-120579: Guard `_testcapi` import in `test_free_threading` (GH-120580) (cherry picked from commit 0c0348adbfca991f78b3aaa6790e5c26606a1c0f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] gh-120360: Add self as IDLE doc owner (GH-120571) (#120576)Miss Islington (bot)2024-06-161-0/+1
| | | | | | | | gh-120360: Add self as IDLE doc owner (GH-120571) Add self as IDLE doc owner (cherry picked from commit cf49ef78f894e418bea7de23dde9b01d6235889d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.13] gh-120572: add missing parentheses in TypeIs documentation ↵Miss Islington (bot)2024-06-161-2/+2
| | | | | | | | (GH-120573) (#120575) gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (cherry picked from commit 1fa595963ed512b055d2a4faddef5a9e544288ac) Co-authored-by: Nyuan Zhang <blueglassblock@outlook.com>
* [3.13] gh-112346: Always set OS byte to 255, simpler gzip.compress function. ↵Miss Islington (bot)2024-06-154-34/+26
| | | | | | | | | | (GH-120486) (#120563) gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH-120486) This matches the output behavior in 3.10 and earlier; the optimization in 3.11 allowed the zlib library's "os" value to be filled in instead in the circumstance when mtime was 0. this keeps things consistent. (cherry picked from commit 08d09cf5ba041c9c5c3860200b56bab66fd44a23) Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
* [3.13] gh-120541: Improve the "less" prompt in pydoc (GH-120543) (GH-120562)Miss Islington (bot)2024-06-153-14/+59
| | | | | | | When help() is called with non-string argument, use __qualname__ or __name__ if available, otherwise use "{typename} object". (cherry picked from commit 31d1d72d7e24e0427df70f7dd14b9baff28a4f89) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] annotations: expand documentation on "simple" assignment targets ↵Miss Islington (bot)2024-06-152-5/+12
| | | | | | | | | | | | (GH-120535) (#120555) This behavior is rather surprising and it was not clearly specified. (cherry picked from commit 9e0b11eb21930b7b8e4a396200a921e9985cfca4) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.13] gh-117657: Make PyType_HasFeature (exported version) atomic ↵Miss Islington (bot)2024-06-152-2/+6
| | | | | | | | | | (GH-120484) (#120554) gh-117657: Make PyType_HasFeature (exported version) atomic (GH-120484) Make PyType_HasFeature (exported version) atomic (cherry picked from commit 6f63dfff6f493b405f3422210a168369e1e7a35d) Co-authored-by: Ken Jin <kenjin@python.org>