summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-111929: Fix regrtest --pgo: test_str => test_unicode (#111938)Victor Stinner2023-11-101-1/+1
| | | | test_unicode was renamed to test_str in Python 3.13, but Python 3.12 still uses test_unicode name.
* gh-111356: io: Add missing documented objects to io.__all__ (GH-111370)Miss Islington (bot)2023-11-103-11/+17
| | | | | | Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder. (cherry picked from commit baeb7718f8981319c5cb1fbdd46d162ded7964ea) Co-authored-by: Nicolas Tessore <n.tessore@ucl.ac.uk>
* [3.12] gh-109370: Fix unexpected traceback output in test_concurrent_futures ↵Serhiy Storchaka2023-11-102-3/+3
| | | | | | | | | | (GH-109780) (GH-111934) Follow-up of gh-107219. * Only close the connection writer on Windows. * Also use existing constant _winapi.ERROR_OPERATION_ABORTED instead of WSA_OPERATION_ABORTED. (cherry picked from commit 0b4e090422db5f959184353d53552d1675f74212)
* [3.12] GH-111804: Drop posix.fallocate() under WASI (GH-111869) (GH-111919)Brett Cannon2023-11-093-5/+10
| | | | | | | | | GH-111804: Drop posix.fallocate() under WASI (GH-111869) Drop posix.fallocate() under WASI. The underlying POSIX function, posix_fallocate(), was found to vary too much between implementations to remain in WASI. As such, while it was available in WASI preview1, it's been dropped in preview2.
* [3.12] gh-110875: Handle '.' properties in logging formatter configuration ↵Miss Islington (bot)2023-11-092-5/+41
| | | | | | c… (GH-110943) (GH-111911) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* [3.12] gh-111895: Convert definition list to bullet list for readability on ↵Miss Islington (bot)2023-11-091-6/+6
| | | | | | | | | | mobile (GH-111898) (#111908) gh-111895: Convert definition list to bullet list for readability on mobile (GH-111898) Convert definition list to bullet list for readability on mobile (cherry picked from commit 7d21e3d5ee9858aee570aa6c5b6a6e87d776f4b5) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111881: Import doctest lazily in libregrtest (GH-111884) (#111893)Miss Islington (bot)2023-11-091-5/+8
| | | | | | | | | | gh-111881: Import doctest lazily in libregrtest (GH-111884) In most cases, doctest is not needed. So don't always import it at startup. The change reduces the number of modules already imported when a test is run. (cherry picked from commit 6f09f69b7f85962f66d10637c3325bbb2b2d9853) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111881: Use lazy import in test.support (#111885) (#111890)Victor Stinner2023-11-092-8/+13
| | | | | | | | gh-111881: Use lazy import in test.support (#111885) * Import lazily getpass in test.support * Only import ctypes on Windows in test.support.os_helper. (cherry picked from commit 0372e3b02a7e3dc1c564dba94dcd817c5472b04f)
* [3.12] gh-108303: Move more files to `Lib/test/test_module` (GH-111880) ↵Miss Islington (bot)2023-11-093-5/+5
| | | | | | | | (#111891) gh-108303: Move more files to `Lib/test/test_module` (GH-111880) (cherry picked from commit 0c42f7304a2757fe0f78bc6c6fbb33225cd9da15) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-108303: Move config parser data to `Lib/test/configparserdata/` ↵Miss Islington (bot)2023-11-095-12/+12
| | | | | | | | (gh-111879) (gh-111882) gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879) (cherry picked from commit cc18b886a51672c59622837a2b8e83bf6be28c58) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110543: Fix CodeType.replace in presence of comprehensions ↵Miss Islington (bot)2023-11-083-2/+75
| | | | | | | | (GH-110586) (#111866) gh-110543: Fix CodeType.replace in presence of comprehensions (GH-110586) (cherry picked from commit 0b718e6407da65b838576a2459d630824ca62155) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-111495: Add tests for PyList C API (GH-111562) (GH-111861)Miss Islington (bot)2023-11-082-1/+456
| | | | | | | | (cherry picked from commit a3903c8ec838f82338f7a7af68a6699118778e1d) Signed-off-by: kalyanr <kalyan.ben10@live.com> Co-authored-by: Kalyan <kalyan.ben10@live.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108303: Move more typing related files to Lib/test/typinganndata ↵Nikita Sobolev2023-11-084-3/+2
| | | | | (GH-111825) (#111859) [3.12] gh-108303: Move more typing related files to Lib/test/typinganndata(GH-111825)
* [3.12] Glossary: Add "static type checker" (GH-111837) (#111854)Miss Islington (bot)2023-11-084-7/+14
| | | | | | | Glossary: Add "static type checker" (GH-111837) (cherry picked from commit 8ab7ad63086b1793c24b1c5aaa19b60fc0e6540e) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds ↵Miss Islington (bot)2023-11-071-0/+1
| | | | | | | | (GH-111830) (GH-111831) gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds (GH-111830) (cherry picked from commit f115a55f0e455a4b43a1da9fd838a60a101f182a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111765: Move old PyFloat_* tests to ↵Miss Islington (bot)2023-11-072-65/+65
| | | | | | | Lib/test/test_capi/test_float.py (GH-111766) (GH-111818) (cherry picked from commit a077b2fbb88f5192bb47e514334f760bf08d0295) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111729: update generic syntax for `typing.Concatenate` sample code ↵Miss Islington (bot)2023-11-071-5/+2
| | | | | | | in `Doc/library/typing.rst` (GH-111734) (#111814) (cherry picked from commit c3e19c3a62e82b9e77563e934059895b6230de6e) Co-authored-by: 方糖 <cubesugarcheese@qq.com>
* [3.12] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs ↵Miss Islington (bot)2023-11-063-3/+53
| | | | | | | | read out of bounds (gh-111695) (gh-111769) gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695) (cherry picked from commit c8faa3568afd255708096f6aa8df0afa80cf7697) Co-authored-by: Masayuki Moriyama <masayuki.moriyama@miraclelinux.com>
* [3.12] gh-111495: Add tests for PyComplex C API (GH-111591) (GH-111753)Miss Islington (bot)2023-11-052-0/+238
| | | | | (cherry picked from commit 24b5cbd3dce3fe37cdc787ccedd1e73a4f8cfc3c) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111495: Add tests for PyFloat C API (GH-111624) (GH-111752)Miss Islington (bot)2023-11-052-0/+191
| | | | | (cherry picked from commit b452202a11c4cb60f69a098a0076a8a8aabade38) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111747: DOC: fix moved link to Documentation Translations ↵Miss Islington (bot)2023-11-051-1/+1
| | | | | | | | (GH-111748) (#111749) Update old link in bugs.rst to the table of doc translators and translation repositories at Github. (cherry picked from commit 72e27a67b97993f277e69c9dafb063007ba79adf) Co-authored-by: partev <petrosyan@gmail.com>
* [3.12] gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` ↵Miss Islington (bot)2023-11-041-0/+4
| | | | | | | | | | (GH-111725) (#111727) gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (GH-111725) Close database connection explicitly in test cleanup. (cherry picked from commit f48e669504ce53040a04e0181064c11741a87817) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111495: Test C API functions with extreme sizes and indices ↵Serhiy Storchaka2023-11-044-41/+130
| | | | | (GH-111631) (GH-111731) (cherry picked from commit a8e1f474c20ab15140dd0cfcb96b696857907a60)
* [3.12] gh-111159: Fix `SyntaxError` doctests for non-builtin exception ↵Miss Islington (bot)2023-11-043-1/+24
| | | | | | | | classes (GH-111541) (#111732) gh-111159: Fix `SyntaxError` doctests for non-builtin exception classes (GH-111541) (cherry picked from commit 18c954849bcdd5acb6ef91cd90d92f3b5c685134) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111644: Fix asyncio test_unhandled_exceptions() (GH-111713) (#111718)Miss Islington (bot)2023-11-041-2/+3
| | | | | | | | | | | | | | gh-111644: Fix asyncio test_unhandled_exceptions() (GH-111713) Fix test_unhandled_exceptions() of test_asyncio.test_streams: break explicitly a reference cycle. Fix also StreamTests.tearDown(): the loop must not be closed explicitly, but using set_event_loop() which takes care of shutting down the executor with executor.shutdown(wait=True). BaseEventLoop.close() calls executor.shutdown(wait=False). (cherry picked from commit ac01e2243a1104b2154c0d1bdbc9f8d5b3ada778) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111644: Fix support threading_cleanup() (GH-111714) (#111716)Miss Islington (bot)2023-11-041-25/+28
| | | | | | | | | | | | | | | | | | gh-111644: Fix support threading_cleanup() (GH-111714) Copy the list of dangling threads to make sure that the list of "Dangling thread" is complete. Previously, the list was incomplete if threads completed just before the list was displayed. Changes: * Rewrite the warning to make it easier to understand. * Use support.sleeping_retry(). * threading_cleanup() no longer copies threading._dangling, but only counts the number of dangling thread. * Remove support.gc_support() call. (cherry picked from commit f62c7ccf9abf6e0493978da9cf9ca43adcd403f9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111654: remove redundant decref in LOAD_FROM_DICT_OR_DEREF ↵Jelle Zijlstra2023-11-034-281/+286
| | | | | | | (GH-111655) (#111674) (cherry picked from commit 3a1b09e6d070778d78d81084f88d37377d38ee9b) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] gh-54434: Make difflib.rst doctests pass. (GH-111677) (#111678)Miss Islington (bot)2023-11-031-3/+5
| | | | | | gh-54434: Make difflib.rst doctests pass. (GH-111677) (cherry picked from commit 0d3df272fbd131bff7f02d4d4279ad1e35081121) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] Fix typo in documentation of `SysLogHandler.createSocket` (GH-111665) ↵Miss Islington (bot)2023-11-021-3/+1
| | | | | (#111669) (cherry picked from commit 489b80640ff9c4f10b25da6d562b06c62a10a76b)
* [3.12] gh-111625: Fix link to Info-ZIP homepage (GH-111626) (#111639)Miss Islington (bot)2023-11-022-4/+4
| | | | Co-authored-by: partev <petrosyan@gmail.com>
* [3.12] GH-110894: Call loop exception handler for exceptions in ↵Kumar Aditya2023-11-023-0/+42
| | | | | | client_connected_cb (GH-111601) (#111632) Call loop exception handler for exceptions in `client_connected_cb` of `asyncio.start_server` so that applications can handle it.. (cherry picked from commit 229f44d353c71185414a072017f46f125676bdd6)
* [3.12] gh-111253: Fix error checking in _socket module init (GH-111254) ↵Miss Islington (bot)2023-11-012-2/+3
| | | | | | | | (#111299) gh-111253: Fix error checking in _socket module init (GH-111254) (cherry picked from commit 3052c098ca2779c2d9ab9800dabe66d0efa01794) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111295: Fix error checking in time extension module init ↵Miss Islington (bot)2023-11-012-10/+18
| | | | | | | | | | (GH-111296) (#111300) gh-111295: Fix error checking in time extension module init (GH-111296) Introduce ADD_INT macro wrapper for PyModule_AddIntConstant() (cherry picked from commit 81b03e78101c97c1d3fe5f90908bbf94e83d7df1) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111495: Add tests for PyBytes and PyByteArray C API (GH-111496) ↵Miss Islington (bot)2023-11-015-1/+727
| | | | | | | (GH-111607) (cherry picked from commit 97b3cd38d105fd891ba46dd27d08f03d1c6dd348) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 ↵Victor Stinner2023-11-013-7/+9
| | | | | | (#111588) Constants like Py_MOD_PER_INTERPRETER_GIL_SUPPORTED were only added to the limited C API version 3.12 and newer.
* [3.12] gh-111576: Improve documention for tkinter.messagebox (GH-111578) ↵Miss Islington (bot)2023-11-011-10/+165
| | | | | | | (GH-111597) (cherry picked from commit eaf67e37a2da28c1241362e3b4ff1202945c83c5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111495: add stub files for C API test modules (GH-111586) (GH-111592)Sergey B Kirpichev2023-11-0113-3/+204
| | | | | This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue. (cherry picked from commit 33ed5fa69dbe25d64a910c450be527f4db9dc5dd)
* [3.12] gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN ↵Miss Islington (bot)2023-11-013-2/+34
| | | | | | | | | | | | (GH-111577) (#111589) gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (GH-111577) "./python -m test -j1 -R 3:3 --verbose3" now works as expected, since run_single_test() does not replace sys.stdout with StringIO in this case. (cherry picked from commit d9a5530d2327efa1fe66a04d31b5c67e42dbcd9c) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111282: Fix NamedTemporaryFile example code (GH-111283) (GH-111579)Miss Islington (bot)2023-10-311-7/+7
| | | | | (cherry picked from commit 102685c4c8481ec5d9c132fcf06b46057e815969) Co-authored-by: Krzysiek Karbowiak <krzysztof.karbowiak@interia.pl>
* [3.12] gh-111181: Fix enum doctests (GH-111180) (GH-111518)Miss Islington (bot)2023-10-313-15/+22
| | | | | | | gh-111181: Fix enum doctests (GH-111180) (cherry picked from commit c4dc5a6ae8aa13abb743182df088f1a3526d1bcd) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-109181: Speed up Traceback object creation by lazily compute the ↵Pablo Galindo Salgado2023-10-312-6/+31
| | | | | | line number (GH-111548) (#111551) . (cherry picked from commit abb15420c11d9dda9c89f74eac8417240b321109)
* [3.12] gh-102249: Expand sys.call_tracing documentation (GH-102806) (#111557)Miss Islington (bot)2023-10-311-3/+17
| | | | | Co-authored-by: Quentin Peter <impact27@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.12] gh-93607: document `root` attribute of `iterparse` (GH-99410) (#111555)Miss Islington (bot)2023-10-311-1/+3
| | | | | | Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-106861: Docs: Add availability directives to all Unix-only modules ↵Miss Islington (bot)2023-10-319-6/+14
| | | | | | (GH-108975) (#111553) Co-authored-by: xzmeng <aumo@foxmail.com>
* [3.12] gh-111531: Tkinter: fix reference leaks in bind_class() and ↵Miss Islington (bot)2023-10-312-2/+4
| | | | | | | bind_all() (GH-111533) (GH-111535) (cherry picked from commit e3353c498d79f0f3f108a9baf8807a12e77c2ebe) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111301: Move `importlib.resources.files` change to What's new in ↵Hugo van Kemenade2023-10-311-0/+3
| | | | | | Python 3.12 (#111512) (#111534) Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
* [3.12] Remove myself from typing CODEOWNERS (GH-111523) (#111525)Miss Islington (bot)2023-10-301-1/+1
| | | | Co-authored-by: Ken Jin <kenjin@python.org>
* [3.12] gh-111366: Correctly show custom syntax error messages in the codeop ↵Pablo Galindo Salgado2023-10-303-6/+31
| | | | module functions (GH-111384). (#111517)
* [3.12] gh-111284: Make multiprocessing tests with threads faster and more ↵Miss Islington (bot)2023-10-301-9/+21
| | | | | | | reliable (GH-111285) (GH-111510) (cherry picked from commit 624ace5a2f02715d084c29eaf2211cd0dd550690) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108082: C API: Add tests for PyErr_WriteUnraisable() (GH-111455) ↵Miss Islington (bot)2023-10-303-0/+70
| | | | | | | | (GH-111507) Also document the behavior when called with NULL. (cherry picked from commit bca330542912532baa33af20a107fcf956cf007a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>