summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-101100: Define `_tkinter` module to fix references (GH-112382) ↵Miss Islington (bot)2023-11-251-0/+3
| | | | | | | | | | (#112392) gh-101100: Define `_tkinter` module to fix references (GH-112382) Define _tkinter module to fix references (cherry picked from commit 6b961b8ceaba372b78d03feaceb4837bf7236694) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-101100: Define `test.regrtest` module to fix references ↵Miss Islington (bot)2023-11-251-0/+3
| | | | | | | | | | (GH-112381) (#112390) gh-101100: Define `test.regrtest` module to fix references (GH-112381) Define test.regrtest module to fix references (cherry picked from commit d525d01e2794e7e736527eaa7ee309ca1252f5bd) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-59254: mention in open() doc that line buffering is for writing ↵Miss Islington (bot)2023-11-241-1/+1
| | | | | | | | (GH-112318) (#112378) gh-59254: mention in open() doc that line buffering is for writing (GH-112318) (cherry picked from commit fafae08cc7caa25f2bd6b29106b50ef76c3e296f) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] Remove bogus annotations from the descriptor howto guide (GH-112349) ↵Miss Islington (bot)2023-11-231-3/+3
| | | | | | | | (#112352) Remove bogus annotations from the descriptor howto guide (GH-112349) (cherry picked from commit d9fc15222e96942e30ea8b0561dec5c82ecb4663) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.12] GH-109052: Use the base opcode when comparing code objects (GH-112329)Tian Gao2023-11-233-2/+22
|
* [3.12] Fix docstring and var name of itertools recipe (GH-112113) (#112310)Miss Islington (bot)2023-11-221-3/+3
| | | | | | | | | Fix docstring and var name of itertools recipe (GH-112113) `prepend()` works with arbitrary iterables, not only iterators. In fact, the example given uses a `list`, which is iterable, but not an iterator. (cherry picked from commit 6c47eaccfa2550c140a24bc6e520d968731d9689) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* [3.12] GH-111963: Clarify sys.monitoring.free_tool_id's limitations (GH-112304)Miss Islington (bot)2023-11-211-0/+7
| | | | (cherry picked from commit 46500c42f09a8342efde48ad74327d5225158ff3) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041) ↵Miss Islington (bot)2023-11-217-2/+206
| | | | | | | | | | | | | | | | | | | | | (#112294) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) (cherry picked from commit d67f947c72af8a215db2fd285e5de9b1e671fde1) Co-authored-by: Christopher Chavez <chrischavez@gmx.us> Co-authored-by: Ned Deily <nad@python.org>
* [3.12] gh-112243: Don't include comments in f-string debug expressions ↵Pablo Galindo Salgado2023-11-203-5/+53
| | | | | (GH-112284) (#112285) (cherry picked from commit d59feb5dbe5395615d06c30a95e6a6a9b7681d4d)
* [3.12] gh-73561: Omit interface scope from IPv6 when used as Host header ↵Miss Islington (bot)2023-11-193-2/+27
| | | | | | | | | | | | | | | | (GH-93324) (#112272) gh-73561: Omit interface scope from IPv6 when used as Host header (GH-93324) Omit the `@interface_scope` from an IPv6 address when used as Host header by `http.client`. --------- (cherry picked from commit ce1096f974d3158a92e050f9226700775b8db398) [Google LLC] Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* [3.12] gh-112266: Remove `(if defined)` part from `__dict__` and ↵Miss Islington (bot)2023-11-193-18/+20
| | | | | | | | `__weakref__` docstrings (GH-112268) (#112270) gh-112266: Remove `(if defined)` part from `__dict__` and `__weakref__` docstrings (GH-112268) (cherry picked from commit f8129146ef9e1b71609ef4becc5d508061970733) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-112186: Improve test case `test_loop_is_closed_resource_warnings` ↵Miss Islington (bot)2023-11-191-6/+3
| | | | | | | (GH-112187) (#112255) (cherry picked from commit 18c692946953e586db432fd06c856531a2b05127) Co-authored-by: DPR <dpr-0xff@pm.me>
* [3.12] gh-110383: Explained which error message is generated when there is ↵Miss Islington (bot)2023-11-191-2/+1
| | | | | | | an unhandled exception (GH-111574) (#112264) Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-110383: Fix documentation profile cumtime fix (GH-112221) (#112262)Miss Islington (bot)2023-11-191-2/+2
| | | | | Co-authored-by: Alex Ptakhin <me@aptakhin.name> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] IDLE: Fix test_debugger bug and buildbot failures (GH-112258) (#112259)Miss Islington (bot)2023-11-191-5/+7
| | | | | | | | | | | | | IDLE: Fix test_debugger bug and buildbot failures (GH-112258) Missing "requires('gui')" causes Tk() to fail when no gui. This caused CI Hypothesis test to fail, but I did not understand the its error message. Then buildbots failed. IdbTest failed on draft Bdb replacement because so different. Simplified version works on old and new. (cherry picked from commit 14fd86a59d0d91fe72641efeb14a59d99127dec3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112256)Miss Islington (bot)2023-11-195-77/+400
| | | | | | | | | | | | | gh-79871: IDLE - Fix and test debugger module (GH-11451) Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes. Expand test_debugger coverage from 19% to 66%. --------- (cherry picked from commit adedcfa06b553242d8033f6d9bebbcb3bc0dbb4d) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#112230)Nikita Sobolev2023-11-181-0/+6
|
* [3.12] gh-112194: Convert more examples to doctests in `typing.py` ↵Miss Islington (bot)2023-11-171-31/+43
| | | | | | | | | (GH-112195) (#112208) gh-112194: Convert more examples to doctests in `typing.py` (GH-112195) (cherry picked from commit 949b2cc6eae6ef4f3312dfd4e2650a138446fe77) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-94309: "What's new in Python 3.12": improve deprecation notice for ↵Miss Islington (bot)2023-11-171-2/+3
| | | | | | | | typing.Hashable and typing.Sized (GH-112196) (#112200) gh-94309: "What's new in Python 3.12": improve deprecation notice for typing.Hashable and typing.Sized (GH-112196) (cherry picked from commit fb4cddb0cc6c9b94929f846da8e95aeec3849212) Co-authored-by: Ori Avtalion <ori@avtalion.name>
* [3.12] gh-112165: Fix typo in `__main__.py` (GH-112183) (#112184)Miss Islington (bot)2023-11-171-1/+1
| | | | | | | | gh-112165: Fix typo in `__main__.py` (GH-112183) Change '[2]' to '[1]' to get second argument. (cherry picked from commit 8cd70eefc7f3363cfa0d43f34522c3072fa9e160) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] Remove `imp_dummy_def` from `Tools/c-analyzer/cpython/ignored.tsv` ↵Miss Islington (bot)2023-11-161-1/+0
| | | | | | | | (gh-112122) (gh-112177) It was removed in 3.12, no need to keep the ignore. (cherry picked from commit 762eb58220992d1ab809b9a281d47c0cd48a5aec) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-109538: Catch closed loop runtime error and issue warning ↵DPR2023-11-163-2/+66
| | | | | | | | | | | | | | | | | (GH-111983) (#112142) * [3.12] gh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (GH-111983) Issue a ResourceWarning instead. (cherry picked from commit e0f512797596282bff63260f8102592aad37cdf1) gh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (#111983) Issue a ResourceWarning instead. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit e0f512797596282bff63260f8102592aad37cdf1) * Fix missing warnings import
* [3.12] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112131)Miss Islington (bot)2023-11-161-0/+1
| | | | | | gh-111811: Fix test_recursive_repr for WASI (GH-112130) (cherry picked from commit 7218bac8c84115a8e9a18a4a8f3146235068facb) Co-authored-by: Kushal Das <mail@kushaldas.in>
* [3.12] GH-112152: Fix typo in `typing.override` docstring (GH-112158) (#112162)Miss Islington (bot)2023-11-161-1/+1
| | | | | | GH-112152: Fix typo in `typing.override` docstring (GH-112158) (cherry picked from commit 12c7e9d573de57343cf018fb4e67521aba46c90f) Co-authored-by: Qua27 <92877777+Qua27@users.noreply.github.com>
* [3.12] gh-112088: Run autoreconf in GHA check_generated_files (GH-112090) ↵Victor Stinner2023-11-169-168/+139
| | | | | | | | | | | | | | | | | (#112159) gh-112088: Run autoreconf in GHA check_generated_files (#112090) The "Check if generated files are up to date" job of GitHub Actions now runs the "autoreconf -ivf -Werror" command instead of the "make regen-configure" command to avoid depending on the external quay.io server. Add Tools/build/regen-configure.sh script to regenerate the configure with an Ubuntu container image. The "quay.io/tiran/cpython_autoconf:271" container image (https://github.com/tiran/cpython_autoconf) is no longer used. (cherry picked from commit d9fd33a869d2be769ff596530f63ee099465b037)
* [3.12] gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas ↵Miss Islington (bot)2023-11-161-6/+97
| | | | | | | | | | (GH-111504) (GH-112148) gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas (GH-111504) (cherry picked from commit 985679f05d1b72965bfbed99d1499c22815375e4) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-111062: CI: Move OS test jobs to reusable workflows (gh-111568)Hugo van Kemenade2023-11-164-147/+184
| | | | | CI: Move OS test jobs to reusable workflows Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.12] Fix typo in perf profiling docs (GH-112112) (#112117)Miss Islington (bot)2023-11-151-1/+1
| | | | | | Fix typo in perf profiling docs (GH-112112) (cherry picked from commit 0cfdd6e3d17fee8c1c1f4b42b2146abcb43aa34b) Co-authored-by: Ryuji Tsutsui <ryu22e+github@gmail.com>
* [3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor ↵Victor Stinner2023-11-153-5/+14
| | | | | | | | | | | (GH-112061) (GH-112089) In non-debug more the check for the "errors" argument is skipped, and then PyUnicode_AsUTF8() can fail, but its result was not checked. Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 9302f05f9af07332c414b3c19003efd1b1763cf3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108303: Delete `imp_dummy` test file (GH-112110) (#112114)Miss Islington (bot)2023-11-151-3/+0
| | | | | | gh-108303: Delete `imp_dummy` test file (GH-112110) (cherry picked from commit 422c0f030170490c001575303d9e628a0298d457) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Docs: Add the time to the HTML last updated format (GH-110091) (#112102)Miss Islington (bot)2023-11-151-3/+2
| | | | | | Docs: Add the time to the HTML last updated format (GH-110091) (cherry picked from commit 6c214dea7c503eb42bd130d43e8880f39bff0350) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-111942: Fix crashes in TextIOWrapper.reconfigure() (GH-111976) ↵Miss Islington (bot)2023-11-143-5/+122
| | | | | | | | | | | | | (GH-112058) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments. (cherry picked from commit ee06fffd38cb51ce1c045da9d8336d9ce13c318a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110944: Move pty helper to test.support and add basic pdb ↵Miss Islington (bot)2023-11-143-54/+91
| | | | | | | | completion test (GH-111826) (GH-112024) gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826) (cherry picked from commit 1c7ed7e9ebc53290c831d7b610219fa737153a1b) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-111622: Fix doc for items views (GH-112051) (#112052)Miss Islington (bot)2023-11-141-5/+8
| | | | | | | They are set-like even when some values are not hashable, but work even better when all are. (cherry picked from commit e31d65e0b7bb6d6fee4e8df54e10976b4cfab1de) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-111460: Restore ncurses widechar support on macOS (GH-111878) ↵Miss Islington (bot)2023-11-143-3/+8
| | | | | | | | (gh-112034) gh-111460: Restore ncurses widechar support on macOS (GH-111878) (cherry picked from commit d2f305dfd183025a95592319b280fcf4b20c8694) Co-authored-by: Davide Rizzo <sorcio@gmail.com>
* [3.12] gh-112007: Re-organize help utility intro message (GH-112017) (#112047)Miss Islington (bot)2023-11-131-11/+13
| | | | | | | | | | | gh-112007: Re-organize help utility intro message (GH-112017) Most important: move how-to-quit sentence to the end and mention 'q'. Re-group the other sentences and improve some wording. --------- (cherry picked from commit b28bb130bbc2ad956828819967d83e06d30a65c5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-111856: Fix os.fstat on windows with FAT32 and exFAT filesystem (GH-112038)Miss Islington (bot)2023-11-132-3/+10
| | | | | (cherry picked from commit 29af7369dbbbba8cefafb196e977bce8189a527d) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] gh-102837: more tests for the math module (GH-111930)(GH-102523) ↵Petr Viktorin2023-11-131-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-112030) * gh-102837: improve test coverage for math module (GH-102523) (Only the test changes from GH-102523 are cherry-picked) - input checks for math_1(L989), math_1a(L1023), math_2(L1064,L1071), hypot(L2682), log(L2307), ldexp(L2168), ceil(L1165), floor(L1236,L1239) and dist(L2587,L2588,L2628). - improve fsum coverage for exceptional cases (L1433,L1438,L1451,L1497), ditto fmod(L2378) (all line numbers are wrt the main branch at 5e6661bce9) * gh-102837: more tests for the math module (GH-111930) Add tests to improve coverage: * fsum: L1369, L1379, L1383, L1412 * trunc: L2081 * log: L2267 * dist: L2577, L2579 * hypot: L2632 * sumprod: L2744, L2754, L2774, L2778, L2781, L2785, L2831, L2835, L2838 * pow: L2982 * prod: L3294, L3308, L3318-3330 // line numbers wrt to 9dc4fb8204 (cherry picked from commit c61de456db0186b65d479d41e84127832205d30d) --------- Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111681: minor fixes to typing doctests; remove unused imports in ↵Alex Waygood2023-11-132-3/+3
| | | | | | `test_typing` (#111682) (#112035) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Bump mypy to 1.7.0 (GH-111961) (#112033)Alex Waygood2023-11-132-1/+2
|
* [3.12] Docs: Add `make htmllive` to rebuild and reload HTML files in your ↵Miss Islington (bot)2023-11-132-0/+7
| | | | | | browser (GH-111900) (#112022) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111944: Add assignment expression parentheses requirements ↵Miss Islington (bot)2023-11-131-4/+5
| | | | | | | | | | (GH-111977) (#112010) Augment the list of places where parentheses are required around assignnment statements. In particular, 'a := 0' and 'a = b := 1' are syntax errors. (cherry picked from commit 9a2f25d374f027f6509484d66e1c7bba03977b99) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-112001: Fix test_builtins_have_signatures in test_inspect ↵Miss Islington (bot)2023-11-121-12/+7
| | | | | | | | (GH-112002) (GH-112003) (cherry picked from commit 40752c1c1e8cec80e99a2c9796f4fde2f8b5d3e2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111933: fix broken link to A.Neumaier article (gh-111937) (gh-111993)Miss Islington (bot)2023-11-121-1/+4
|
* [3.12] gh-111777: Fix assertion errors on incorrectly still-tracked GC ↵Miss Islington (bot)2023-11-121-1/+3
| | | | | | | | | | | | | | | object destruction (GH-111778) (#111989) gh-111777: Fix assertion errors on incorrectly still-tracked GC object destruction (GH-111778) In PyObject_GC_Del, in Py_DEBUG mode, when warning about GC objects that were not properly untracked before starting destruction, take care to untrack the object _before_ warning, to avoid triggering a GC run and causing the problem the code tries to warn about. Also make sure to save and restore any pending exceptions, which the warning would otherwise clobber or trigger an assertion error on. (cherry picked from commit ce6a533c4bf1afa3775dfcaee5fc7d5c15a4af8c) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] Fix undefined behaviour in datetime.time.fromisoformat() (GH-111982) ↵Miss Islington (bot)2023-11-121-1/+1
| | | | | | | | | | (#111992) Fix undefined behaviour in datetime.time.fromisoformat() (GH-111982) Fix undefined behaviour in datetime.time.fromisoformat() when parsing a string without a timezone. 'tzoffset' is not assigned to by parse_isoformat_time if it returns 0, but time_fromisoformat then passes tzoffset to another function, which is undefined behaviour (even if the function in question does not use the value). (cherry picked from commit 21615f77b5a580e83589abae618dbe7c298700e2) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] gh-110395: invalidate open kqueues after fork (GH-110517) (#111745)Gregory P. Smith2023-11-113-7/+163
| | | | | | | | | | | | * [3.12] gh-110395: invalidate open kqueues after fork (GH-110517) Invalidate open select.kqueue instances after fork as the fd will be invalid in the child. (cherry picked from commit a6c1c04d4d2339f0094422974ae3f26f8c7c8565) Co-authored-by: Davide Rizzo <sorcio@gmail.com> * move assert to after the child dying this is in `main` via https://github.com/python/cpython/pull/111816/files
* [3.12] gh-111841: Fix os.putenv() and os.unsetenv() with embedded NUL on ↵Miss Islington (bot)2023-11-114-9/+19
| | | | | | | Windows (GH-111842) (GH-111966) (cherry picked from commit 0b06d2482d77e02c5d40e221f6046c9c355458b2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111251: Fix error checking in _blake2 module init (GH-111252) ↵Miss Islington (bot)2023-11-102-8/+18
| | | | | | (#111297) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111912: Run test_posix on Windows (GH-111913) (GH-111953)Miss Islington (bot)2023-11-101-3/+7
| | | | | (cherry picked from commit 64fea3211d08082236d05c38ee728f922eb7d8ed) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>