summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-111187: Postpone removal version for locale.getdefaultlocale() to ↵Hugo van Kemenade2023-10-275-7/+21
| | | | 3.15 (GH-111188) (#111323)
* [3.12] gh-111380: Show SyntaxWarnings only once when parsing if invalid ↵Miss Islington (bot)2023-10-273-0/+19
| | | | | | | | syntax is encouintered (GH-111381) (#111382) gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is encouintered (GH-111381) (cherry picked from commit 3d2f1f0b830d86f16f42c42b54d3ea4453dac318) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] GH-94438: Fix RuntimeWarning for jump tests in test_sys_settrace ↵Miss Islington (bot)2023-10-261-2/+6
| | | | | | (GH-111369) (cherry picked from commit a254120f2f1dd99fa64f12594d1ed19c67df7d64) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] bpo-43950: handle wide unicode characters in tracebacks (GH-28150) ↵Pablo Galindo Salgado2023-10-265-16/+187
| | | | (#111346)
* GH-111293: Fix DirEntry.inode dropping higher bits on Windows (GH-111294)Miss Islington (bot)2023-10-262-3/+4
| | | | | (cherry picked from commit b468538d356552f0242763fe44a17b1939e8bd55) Co-authored-by: zcxsythenew <30565051+zcxsythenew@users.noreply.github.com>
* [3.12] gh-111348: Fix direct invocation of `test_doctest`; remove ↵Miss Islington (bot)2023-10-261-15/+1
| | | | | | | | | `test_doctest.test_coverage` (GH-111349) (#111359) gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349) (cherry picked from commit 31c05b72c15885ad5ff298de39456d8baed28448) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] Docs: Add `restart_events()` and positional arg semantics for ↵Miss Islington (bot)2023-10-251-8/+13
| | | | | | | | | `sys.monitoring` (GH-111291) (#111335) Docs: Add `restart_events()` and positional arg semantics for `sys.monitoring` (GH-111291) (cherry picked from commit 3f84a19e6291db682fc9a570e7612e80e2ffbbb5) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-111165: Add missed "support." prefix for "verbose" (GH-111327) ↵Miss Islington (bot)2023-10-251-1/+1
| | | | | | | (GH-111328) (cherry picked from commit a4981921aa2c00f3883ef593fde1dbc034e3c304) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108590: Improve sqlite3 docs on encoding issues and how to handle ↵Miss Islington (bot)2023-10-251-33/+50
| | | | | | | | | | | | | | | those (GH-108699) (#111324) Add a guide for how to handle non-UTF-8 text encodings. Link to that guide from the 'text_factory' docs. (cherry picked from commit 1262e41842957c3b402fc0cf0a6eb2ea230c828f) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Corvin <corvin@corvin.dev> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Sync location of `mypy` pin with the `main` branch (#111317)Artyom Romanov2023-10-253-3/+3
|
* [3.12] gh-111165: Move test running code from test.support to libregrtest ↵Serhiy Storchaka2023-10-2512-341/+266
| | | | | | | (GH-111166) (GH-111316) Remove no longer used functions run_unittest() and run_doctest() from the test.support module. (cherry picked from commit f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f)
* [3.12] gh-111174: Fix crash in getbuffer() called repeatedly for empty ↵Miss Islington (bot)2023-10-253-3/+20
| | | | | | | BytesIO (GH-111210) (GH-111314) (cherry picked from commit 9da98c0d9a7cc55c67fb0bd3fa162fd3b2c2629b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Bump test deps: `ruff` and `mypy` (GH-111288) (#111313)Artyom Romanov2023-10-252-2/+2
| | | Bump test deps: `ruff` and `mypy`
* [3.12] gh-111065: Add more tests for the C API with the PySys_ prefix ↵Serhiy Storchaka2023-10-258-72/+215
| | | | | | | | | | | | (GH-111067) (GH-111305) * Move existing tests for PySys_GetObject() and PySys_SetObject() into specialized files. * Add test for PySys_GetXOptions() using _testcapi. * Add tests for PySys_FormatStdout(), PySys_FormatStderr(), PySys_WriteStdout() and PySys_WriteStderr() using ctypes. (cherry picked from commit b2ba2985275d1200e5c44c3f224d754141fc5292)
* [3.12] gh-102956: Fix returning of empty byte strings after seek in zipfile ↵Miss Islington (bot)2023-10-253-5/+22
| | | | | | | | | | | … (GH-103565) (#111289) gh-102956: Fix returning of empty byte strings after seek in zipfile … (GH-103565) (cherry picked from commit c73b0f35602abf5f283bf64266641f19bc82fce0) gh-102956: Fix returning of empty byte strings after seek in zipfile module. This was a regression in 3.12.0 due to a performance enhancement. Co-authored-by: Jokimax <77680901+Jokimax@users.noreply.github.com>
* [3.12] Fix first parameter name in `tool` functions from `sys.monitoring` ↵Miss Islington (bot)2023-10-241-9/+9
| | | | | | | | (GH-111286) (#111290) Fix first parameter name in `tool` functions from `sys.monitoring` (GH-111286) (cherry picked from commit 8b44f3c54bb4f99445c108bc0240c458adae9c6f) Co-authored-by: Pavel Karateev <lancelote.du.lac@gmail.com>
* [3.12] GH-111182: Update EnumType.__contains__ docs (GH-111184) (GH-111281)Miss Islington (bot)2023-10-241-3/+4
| | | | | | GH-111182: Update EnumType.__contains__ docs (GH-111184) (cherry picked from commit c0ea67dd0d67a8ac59c61c777eae26288d3ac0f6) Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
* [3.12] gh-109017: Use non alternate name for Kyiv (GH-109251) (GH-111280)Miss Islington (bot)2023-10-241-7/+4
| | | | | | | | | | | | | | tzdata provides Kiev as an alternative to Kyiv: https://sources.debian.org/src/tzdata/2023c-10/backward/?hl=314GH-L314 But Debian moved it to the tzdata-legacy package breaking the test: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050530 This patch switches to the name provided by tzdata. Also check that the new name is actually available. (cherry picked from commit 46407fe79ca78051cbf6c80e8b8e70a228f9fa50) Co-authored-by: Jochen Sprickerhof <github@jochen.sprickerhof.de>
* [3.12] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" ↵Miss Islington (bot)2023-10-241-1/+1
| | | | | | | | | | | | | | | | | | (GH-111271) (GH-111272) Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) This reverts commit 7f316763402a7d5556deecc3acd06cb719e189b3. The change resulted in a tautology and should not have been made. There may be an opportunity for additional clarity in this section, but this change wasn't it :) (cherry picked from commit c7d68f907ad3e3aa17546df92a32bddb145a69bf) Ref: https://github.com/python/cpython/pull/108427#-issuecomment-1777525740 Co-authored-by: Zachary Ware <zach@python.org>
* [3.12] gh-111151: Convert monospaced directives to :ref: (GH-111152) (#111269)Miss Islington (bot)2023-10-243-8/+20
| | | | | | gh-111151: Convert monospaced directives to :ref: (GH-111152) (cherry picked from commit 1198076447f35b19a9173866ccb9839f3bcf3f17) Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
* [3.12] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111255)Miss Islington (bot)2023-10-241-0/+307
| | | | | (cherry picked from commit 9bb202a1a90ef0edce20c495c9426d9766df11bb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix typo in sys docs (GH-111196) (#111248)Miss Islington (bot)2023-10-241-1/+1
| | | | | Co-authored-by: James Tocknell <aragilar+github@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-94438: Restore ability to jump over None tests (GH-111243)Miss Islington (bot)2023-10-244-0/+38
| | | | (cherry picked from commit 6640f1d8d2462ca0877e1d2789e1721767e9caf2) Co-authored-by: Savannah Ostrowski <sostrowski@microsoft.com>
* [3.12] Fix a code snippet typo in asyncio docs (GH-108427) (#111245)Miss Islington (bot)2023-10-241-1/+1
| | | | Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings for `fileno` (GH-111118) (#111226)Miss Islington (bot)2023-10-238-13/+49
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET ↵Miss Islington (bot)2023-10-231-0/+2
| | | | | | (GH-110963) (#111219) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
* [3.12] typo: missing line of output in pull parser example (GH-111068) (#111217)Miss Islington (bot)2023-10-231-0/+1
| | | | Co-authored-by: Don Patterson <37046246+don-patterson@users.noreply.github.com>
* [3.12] gh-106310 - document the __signature__ attribute (GH-106311) (#111145)Miss Islington (bot)2023-10-231-0/+5
| | | | | Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-67565: Add tests for C-contiguity checks (GH-110951) (GH-111198)Furkan Onder2023-10-233-0/+29
| | | (cherry picked from commit 9376728ce45191fcc0b908c7487ad7985454537e)
* [3.12] gh-110383: Italicize variable name (GH-111206) (#111207)Miss Islington (bot)2023-10-231-1/+1
| | | | Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
* [3.12] gh-110383: Added explanation about simplest regex use case for ↵Miss Islington (bot)2023-10-231-0/+3
| | | | | | | quantifiers. (GH-111110) (#111204) Co-authored-by: Nick <Nikki1993@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111191)Miss Islington (bot)2023-10-223-0/+11
| | | | | (cherry picked from commit 767f416feb551f495bacfff1e9ba1e6672c2f24e) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` ↵Miss Islington (bot)2023-10-222-4/+11
| | | | | | | | | | | | | | | | | | (GH-111179) (#111185) gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179) * gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` * Update Doc/library/asyncio-eventloop.rst * Update Doc/library/asyncio-eventloop.rst --------- (cherry picked from commit 8c689c9b88426384a9736c708701923a1ab1da79) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* [3.12] gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` ↵Miss Islington (bot)2023-10-222-2/+1
| | | | | | | | (GH-111173) (#111175) gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) (cherry picked from commit 663cf513b0e973ab7aa4a8609d6616ad2c283f22) Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
* [3.12] gh-111085: Fix invalid state handling in TaskGroup and Timeout ↵Miss Islington (bot)2023-10-216-9/+120
| | | | | | | | | | | | | | | | | | | | (GH-111111) (GH-111171) asyncio.TaskGroup and asyncio.Timeout classes now raise proper RuntimeError if they are improperly used. * When they are used without entering the context manager. * When they are used after finishing. * When the context manager is entered more than once (simultaneously or sequentially). * If there is no current task when entering the context manager. They now remain in a consistent state after an exception is thrown, so subsequent operations can be performed correctly (if they are allowed). (cherry picked from commit 6c23635f2b7067ef091a550954e09f8b7c329e3f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
* [3.12] Synchronize test_contextlib with test_contextlib_async (GH-111000) ↵Miss Islington (bot)2023-10-211-0/+46
| | | | | | | (GH-111114) (cherry picked from commit ff4e53cb747063e95eaec181fd396f062f885ac2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111159: Fix `doctest` output comparison for exceptions with notes ↵Miss Islington (bot)2023-10-213-1/+159
| | | | | | | | (GH-111160) (#111169) gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-111160) (cherry picked from commit fd60549c0ac6c81f05594a5141d24b4433ae39be) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110918: regrtest: allow to intermix --match and --ignore options ↵Serhiy Storchaka2023-10-2112-141/+126
| | | | | | | | | (GH-110919) (GH-111167) Test case matching patterns specified by options --match, --ignore, --matchfile and --ignorefile are now tested in the order of specification, and the last match determines whether the test case be run or ignored. (cherry picked from commit 9a1fe09622cd0f1e24c2ba5335c94c5d70306fd0)
* [3.12] gh-111157: Mention `__notes__` in `traceback.format_exception_only` ↵Miss Islington (bot)2023-10-211-15/+12
| | | | | | | | docstring (GH-111158) (#111163) gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158) (cherry picked from commit 5e7727b05232b43589d177c15263d7f4f8c584a0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110572: Fix potential leaks in test_*_code in _testcapi/getargs.c ↵Miss Islington (bot)2023-10-211-33/+57
| | | | | | | (GH-110573) (GH-111161) (cherry picked from commit f71cd5394efe154ba92228b2b67be910cc1ede95) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) (#111154)Miss Islington (bot)2023-10-214-22/+75
| | | | | | | | | gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) If the SOURCE_DATE_EPOCH environment variable is defined, use its value as the random seed. (cherry picked from commit 7237fb578dc9db9dc557759a24d8083425107b91) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111046: for wasi-threads, export memory as well via the linker ↵Miss Islington (bot)2023-10-203-0/+11
| | | | | | | | (GH-111099) (GH-111141) gh-111046: for wasi-threads, export memory as well via the linker (GH-111099) (cherry picked from commit 5dfa71769f547fffa893a89b0b04d963a41b2441) Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com>
* [3.12] gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in ↵Miss Islington (bot)2023-10-201-4/+4
| | | | | | | | `test_typing` (GH-111127) (#111130) gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127) (cherry picked from commit ea7c26e4b89c71234c4a603567a93f0a44c9cc97) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)Miss Islington (bot)2023-10-202-16/+21
| | | | | (cherry picked from commit 11312eae6ec3acf51aacafce4cb6d1a5edfd5f2e) Co-authored-by: Tamás Hegedűs <sorgloomer@users.noreply.github.com>
* [3.12] Add tests for failing PyUnicode_AsUTF8AndSize() with psize=NULL ↵Miss Islington (bot)2023-10-201-0/+4
| | | | | | | (GH-111100) (GH-111105) (cherry picked from commit b60f05870816019cfd9b2f7d104364613e66fc78) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/codecs.rst` (GH-110979) ↵Miss Islington (bot)2023-10-202-34/+38
| | | | | | | (#111070) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) (#111097)Miss Islington (bot)2023-10-202-5/+14
| | | | | | | | gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) Fix Sphinx warnings in library/tty.rst (cherry picked from commit c42c68aa7bd19b0de7f2132ed468bc4ce83d8aa9) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111092: Make turtledemo run without default root enabled ↵Miss Islington (bot)2023-10-202-1/+2
| | | | | | | | | | | (GH-111093) (#111095) gh-111092: Make turtledemo run without default root enabled (GH-111093) Add missing 'root' argument to PanedWindow call. Other root children already have it. (cherry picked from commit b802882fb2bff8b431df661322908c07491f3ce7) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) ↵Hugo van Kemenade2023-10-192-2/+1
| | | | | | (#111080) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-109510: Clearly explain "Which Docstrings Are Examined" ↵Miss Islington (bot)2023-10-191-3/+24
| | | | | | | | | | (GH-109696) (#111077) Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com> Co-authored-by: Mariatta <Mariatta@users.noreply.github.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>