summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* [3.12] gh-111165: Remove documentation for moved functions (GH-111467) ↵Miss Islington (bot)2023-10-291-10/+0
| | | | | | | (GH-111471) (cherry picked from commit 4d6bdf8aabcc92303041420a96750fbc52c9f213) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` ↵Miss Islington (bot)2023-10-293-7/+15
| | | | | | | | | | | | | | | | | | | | | | (GH-111222) (#111469) gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222) * gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` * Update Doc/library/socket.rst * Update asyncio-eventloop.rst * Update socket.rst --------- (cherry picked from commit 46389c32750f79ab3f398a0132cd002e8a64f809) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111347: Remove wrong assertion in test_sendfile (GH-111377) (#111461)Miss Islington (bot)2023-10-291-2/+5
| | | | | | | | gh-111347: Remove wrong assertion in test_sendfile (GH-111377) Windows is different. (cherry picked from commit fa35b9e89b2e207fc8bae9eb0284260d0d922e7a) Co-authored-by: zcxsythenew <30565051+zcxsythenew@users.noreply.github.com>
* [3.12] gh-111426: Remove `test_cmd.test_coverage` (GH-111427) (#111432)Miss Islington (bot)2023-10-281-11/+1
| | | | | | gh-111426: Remove `test_cmd.test_coverage` (GH-111427) (cherry picked from commit 66bea2555dc7b3dd18282cc699fe9a22dea50de3) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-79033: Try to fix asyncio.Server.wait_closed() again (GH-111336) ↵Miss Islington (bot)2023-10-284-9/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#111424) gh-79033: Try to fix asyncio.Server.wait_closed() again (GH-111336) * Try to fix asyncio.Server.wait_closed() again I identified the condition that `wait_closed()` is intended to wait for: the server is closed *and* there are no more active connections. When this condition first becomes true, `_wakeup()` is called (either from `close()` or from `_detach()`) and it sets `_waiters` to `None`. So we just check for `self._waiters is None`; if it's not `None`, we know we have to wait, and do so. A problem was that the new test introduced in 3.12 explicitly tested that `wait_closed()` returns immediately when the server is *not* closed but there are currently no active connections. This was a mistake (probably a misunderstanding of the intended semantics). I've fixed the test, and added a separate test that checks exactly for this scenario. I also fixed an oddity where in `_wakeup()` the result of the waiter was set to the waiter itself. This result is not used anywhere and I changed this to `None`, to avoid a GC cycle. * Update Lib/asyncio/base_events.py --------- (cherry picked from commit 26553695592ad399f735d4dbaf32fd871d0bb1e1) Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* [3.12] CI: Include Python version in cache.config key (GH-111410) (#111421)Miss Islington (bot)2023-10-281-7/+5
| | | | | | | | | | CI: Include Python version in cache.config key (GH-111410) * Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers (cherry picked from commit 9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111342: fix typo in math.sumprod (GH-111416) (gh-111419)Miss Islington (bot)2023-10-283-1/+3
|
* [3.12] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() ↵Miss Islington (bot)2023-10-272-12/+10
| | | | | | | | | | (GH-110884) (#111412) - `ThreadedChildWatcher.close()` is now *officially* a no-op; `_join_threads()` never did anything. - Threads created by that class are now named `asyncio-waitpid-NNN`. - `test.test_asyncio.utils.TestCase.close_loop()` now waits for the child watcher's threads, but not forever; if a thread hangs, it raises `RuntimeError`. (cherry picked from commit c3bb10c9303503e7b55a7bdf9acfa6b3bcb699c6) Co-authored-by: Guido van Rossum <guido@python.org>
* [3.12] gh-111406: Fix broken link to bpython's site (GH-111407) (#111408)Miss Islington (bot)2023-10-271-1/+1
| | | | | | gh-111406: Fix broken link to bpython's site (GH-111407) (cherry picked from commit 8a158a753c48d166ebceae0687e88ae0c0725c02) Co-authored-by: Zack Cerza <zack@cerza.org>
* [3.12] gh-111276: Clarify docs and comments about the role of LC_CTYPE ↵Miss Islington (bot)2023-10-272-9/+12
| | | | | | | | | | | | | (GH-111319) (#111391) Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0: https://docs.python.org/2/library/string.htmlGH-deprecated-string-functions Also, fix a comment in logging about locale-specific behavior of `str.lower()`. (cherry picked from commit 6d42759c5e47ab62d60a72b4ff15d29864554579) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111343: Fix `itertools` docs: `start` arg is optional for `count` ↵Miss Islington (bot)2023-10-271-1/+1
| | | | (gh-111344) (gh-111385)
* [3.12] Fix typos in import system docs (GH-111396) (#111397)Miss Islington (bot)2023-10-271-3/+3
| | | | | | Fix typos in import system docs (GH-111396) (cherry picked from commit 9a2f2f46caa556eae4c3ac3b45efa85bd91cc807) Co-authored-by: Jonathan Berthias <jvberthias@gmail.com>
* [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>