]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Guido van Rossum [Wed, 27 Sep 2023 22:27:44 +0000 (15:27 -0700)]
gh-104909: Split some more insts into ops (#109943)
These are the most popular specializations of `LOAD_ATTR` and `STORE_ATTR`
that weren't already viable uops:
* Split LOAD_ATTR_METHOD_WITH_VALUES
* Split LOAD_ATTR_METHOD_NO_DICT
* Split LOAD_ATTR_SLOT
* Split STORE_ATTR_SLOT
* Split STORE_ATTR_INSTANCE_VALUE
Also:
* Add `-v` flag to code generator which prints a list of non-viable uops
(easter-egg: it can print execution counts -- see source)
* Double _Py_UOP_MAX_TRACE_LENGTH to 128
I had dropped one of the DEOPT_IF() calls! :-(
Kristján Valur Jónsson [Wed, 27 Sep 2023 22:24:10 +0000 (22:24 +0000)]
gh-109955 : Update state transition comments for asyncio.Task (#109910)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Eric Snow [Wed, 27 Sep 2023 19:41:06 +0000 (13:41 -0600)]
gh-109793: Allow Switching Interpreters During Finalization (gh-109794)
Essentially, we should check the thread ID rather than the thread state pointer.
Jelle Zijlstra [Wed, 27 Sep 2023 17:35:46 +0000 (10:35 -0700)]
Enhance TypedDict docs around required/optional keys (#109547)
As discussed in comments to #109544, the semantics of this attribute
are somewhat confusing. Add a note explaining its limitations and
steering users towards __required_keys__ and __optional_keys__ instead.
Dale Collison [Wed, 27 Sep 2023 16:26:41 +0000 (17:26 +0100)]
gh-109461: Update logging module lock to use context manager (#109462)
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Wed, 27 Sep 2023 15:29:20 +0000 (17:29 +0200)]
gh-109615: Fix support test_copy_python_src_ignore() on WASM (#109970)
Not only check if src_dir exists, but look also for Lib/os.py
landmark.
Sam Gross [Wed, 27 Sep 2023 15:24:12 +0000 (11:24 -0400)]
gh-109740: Use 't' in `--disable-gil` SOABI (#109922)
Shared libraries for CPython 3.13 are now marked with a 't' for
threading. For example, `binascii.cpython-313t-darwin.so`.
Adam Turner [Wed, 27 Sep 2023 14:31:55 +0000 (15:31 +0100)]
GH-109190: Copyedit 3.12 What's New: Release highlights (#109770)
Victor Stinner [Wed, 27 Sep 2023 14:09:23 +0000 (16:09 +0200)]
gh-109566: regrtest doesn't enable --rerun if --python is used (#109969)
regrtest: --fast-ci and --slow-ci options no longer enable --rerun if
the --python option is used.
Nikita Sobolev [Wed, 27 Sep 2023 13:07:28 +0000 (16:07 +0300)]
gh-101100: Fix sphinx warnings in `library/devmode.rst` (#109963)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Irit Katriel [Wed, 27 Sep 2023 12:24:33 +0000 (13:24 +0100)]
gh-109923: set line number on the POP_TOP that follows a RETURN_GENERATOR (#109924)
Victor Stinner [Wed, 27 Sep 2023 10:32:12 +0000 (12:32 +0200)]
gh-109615: Fix support test_copy_python_src_ignore() (#109958)
Fix the test when run on an installed Python: use "abs_srcdir" of
sysconfig, and skip the test if the Python source code cannot be
found.
* Tools/patchcheck/patchcheck.py, Tools/freeze/test/freeze.py and
Lib/test/libregrtest/utils.py now first try to get "abs_srcdir"
from sysconfig, before getting "srcdir" from sysconfig.
* test.pythoninfo logs sysconfig "abs_srcdir".
Victor Stinner [Wed, 27 Sep 2023 10:01:16 +0000 (12:01 +0200)]
gh-109566: Fix regrtest Python options for WASM/WASI (#109954)
WASM and WASI buildbots use multiple PYTHON environment variables
such as PYTHONPATH and _PYTHON_HOSTRUNNER. Don't use -E if the
--python=COMMAND option is used.
Victor Stinner [Wed, 27 Sep 2023 08:51:44 +0000 (10:51 +0200)]
gh-109565: Fix concurrent.futures test_future_times_out() (#109949)
as_completed() uses a timeout of 100 ms instead of 10 ms. Windows
monotonic clock resolution is around 15.6 ms.
Victor Stinner [Wed, 27 Sep 2023 08:18:39 +0000 (10:18 +0200)]
gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)
Fix copy_source_tree() function of test_tools.test_freeze:
* Don't copy SRC_DIR/build/ anymore. This directory is modified by
other tests running in parallel.
* Add test.support.copy_python_src_ignore().
* Use sysconfig to get the source directory.
* Use sysconfig.get_config_var() to get CONFIG_ARGS variable.
Adam Turner [Wed, 27 Sep 2023 04:59:42 +0000 (05:59 +0100)]
GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) (#109927)
Merge the two ``os`` entries
Tom Gillespie [Wed, 27 Sep 2023 03:34:15 +0000 (23:34 -0400)]
Remove loop from docstring for asyncio.streams.open_connection (#108528)
Victor Stinner [Wed, 27 Sep 2023 00:01:48 +0000 (02:01 +0200)]
gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (#109931)
Ammar Askar [Tue, 26 Sep 2023 22:35:49 +0000 (18:35 -0400)]
gh-109098: Fuzz re module instead of internal sre (#109911)
* gh-109098: Fuzz re module instead of internal sre
* Fix c-analyzer globals test failure
* Put globals exception in ignored.tsv
Victor Stinner [Tue, 26 Sep 2023 22:26:34 +0000 (00:26 +0200)]
gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (#109928)
Victor Stinner [Tue, 26 Sep 2023 21:59:11 +0000 (23:59 +0200)]
gh-109566: Fix regrtest code adding Python options (#109926)
* On Windows, use subprocess.run() instead of os.execv().
* Only add needed options
* Rename reexec parameter to _add_python_opts.
* Rename --no-reexec option to --dont-add-python-opts.
Adam Turner [Tue, 26 Sep 2023 21:24:44 +0000 (22:24 +0100)]
GH-109190: Copyedit 3.12 What's New: Deprecations (#109766)
OmniTroid [Tue, 26 Sep 2023 20:22:00 +0000 (22:22 +0200)]
Fix argument ordering of embuilder command documented in `Tools/wasm/README.md` (GH-109863)
Serhiy Storchaka [Tue, 26 Sep 2023 19:58:46 +0000 (22:58 +0300)]
gh-109845: Make test_ftplib more stable under load (GH-109912)
recv() can return partial data cut in the middle of a multibyte
character. Test raw binary data instead of data incorrectly decoded by parts.
Victor Stinner [Tue, 26 Sep 2023 19:34:50 +0000 (21:34 +0200)]
gh-109276, gh-109508: Fix libregrtest stdout (#109903)
Remove replace_stdout(): call sys.stdout.reconfigure() instead of set
the error handler to backslashreplace.
display_header() logs an empty line and flush stdout.
Remove encoding workaround in display_header() since stdout error
handler is now set to backslashreplace earlier.
Victor Stinner [Tue, 26 Sep 2023 19:33:59 +0000 (21:33 +0200)]
Remove concurrent.futures deadcode: process_result_item() (#109906)
process_result_item() cannot be called with an int anymore, the
protocol changed.
Victor Stinner [Tue, 26 Sep 2023 18:46:52 +0000 (20:46 +0200)]
gh-109566: regrtest reexecutes the process (#109909)
When --fast-ci or --slow-ci option is used, regrtest now replaces the
current process with a new process to add "-u -W default -bb -E"
options to Python.
Changes:
* PCbuild/rt.bat and Tools/scripts/run_tests.py no longer need to add
"-u -W default -bb -E" options to Python: it's now done by
regrtest.
* Fix Tools/scripts/run_tests.py: flush stdout before replacing the
process. Previously, buffered messages were lost.
Barney Gale [Tue, 26 Sep 2023 16:57:17 +0000 (17:57 +0100)]
GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)
Treat symlink loops like other errors: in strict mode, raise `OSError`, and
in non-strict mode, do not raise any exception.
Victor Stinner [Tue, 26 Sep 2023 15:22:50 +0000 (17:22 +0200)]
gh-109566, regrtest: Add --fast-ci and --slow-ci options (#109570)
* Add --fast-ci and --slow-ci options to libregrtest:
* --fast-ci uses a default timeout of 10 minutes and "-u all,-cpu"
(skip slowest tests).
* --slow-ci uses a default timeout of 20 minues and "-u all" (run
all tests).
* regrtest header now lists test resources.
* Makefile changes:
* "make test", "make hostrunnertest" and "make coverage-report" now
use --fast-ci option and TESTTIMEOUT variable.
* "make buildbottest" now uses "--slow-ci". Remove options which
became redundant with "--slow-ci".
* "make testall" and "make testuniversal" now use --slow-ci option
and TESTTIMEOUT variable.
* "make testall" now uses "find -exec rm ..." instead of
"find ... -print|xargs rm ...", same as "make clean".
* GitHub Actions workflow:
* Ubuntu and Address Sanitizer jobs now use "make test". Remove
options which became redundant with "--fast-ci".
* Windows jobs now use --fast-ci option.
* Use -j0 to detect the number of CPUs.
* Set Makefile TESTTIMEOUT default to an empty string, since
--slow-ci and --fast-ci use different default timeout. It's now
accepted to pass "--timeout=" to regrtest: treated as not timeout.
* Tools/scripts/run_tests.py now uses --fast-ci option.
* Tools/buildbot/test.bat now uses --slow-ci option. Remove
--timeout=1200 option, redundant with --slow-ci.
Raymond Hettinger [Tue, 26 Sep 2023 13:20:17 +0000 (08:20 -0500)]
More informative docstrings in the random module (gh-109745)
lohaswinner [Tue, 26 Sep 2023 13:12:32 +0000 (22:12 +0900)]
no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902)
Antoine Pitrou [Tue, 26 Sep 2023 11:57:25 +0000 (13:57 +0200)]
gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (#109629)
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Victor Stinner [Tue, 26 Sep 2023 10:43:45 +0000 (12:43 +0200)]
gh-109832: concurrent.futures test_deadlock restores sys.stderr (#109887)
test_error_at_task_unpickle() and
test_error_during_result_unpickle_in_result_handler() now restore
sys.stderr which is overriden by _raise_error_ignore_stderr().
Serhiy Storchaka [Tue, 26 Sep 2023 07:56:33 +0000 (10:56 +0300)]
gh-109631: Allow interruption of short repeated regex matches (GH-109867)
Counting for signal checking now continues in new match from the point where
it ended in the previous match instead of starting from 0.
Nikita Sobolev [Tue, 26 Sep 2023 07:46:09 +0000 (10:46 +0300)]
gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (#109881)
Serhiy Storchaka [Tue, 26 Sep 2023 07:06:07 +0000 (10:06 +0300)]
gh-109370: Fix unexpected traceback output in test_concurrent_futures (GH-109780)
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.
Victor Stinner [Tue, 26 Sep 2023 01:05:07 +0000 (03:05 +0200)]
gh-109739: regrtest disables load tracker if refleak (#109871)
regrtest: Fix reference leak check on Windows. Disable the load
tracker on Windows in the reference leak check mode (-R option).
Victor Stinner [Tue, 26 Sep 2023 00:07:12 +0000 (02:07 +0200)]
gh-109401: Fix threading barrier test_default_timeout() (#109875)
Increase timeouts. Barrier default timeout should be long enough to
spawn 4 threads on a slow CI.
Jason R. Coombs [Mon, 25 Sep 2023 23:46:58 +0000 (19:46 -0400)]
gh-88233: zipfile: refactor _strip_extra (#102084)
* Refactor zipfile._strip_extra to use higher level abstractions for extras instead of a heavy-state loop.
* Add blurb
* Remove _strip_extra and use _Extra.strip directly.
* Use memoryview to avoid unnecessary copies while splitting Extras.
Victor Stinner [Mon, 25 Sep 2023 23:16:30 +0000 (01:16 +0200)]
gh-109748: Fix venv test_zippath_from_non_installed_posix() (#109872)
Fix test_zippath_from_non_installed_posix() of test_venv: don't copy
__pycache__/ sub-directories, because they can be modified by other
Python tests running in parallel.
Irit Katriel [Mon, 25 Sep 2023 18:25:05 +0000 (19:25 +0100)]
gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (#109839)
Antoine Pitrou [Mon, 25 Sep 2023 17:50:39 +0000 (19:50 +0200)]
gh-109599: Add types.CapsuleType (#109600)
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Victor Stinner [Mon, 25 Sep 2023 16:02:04 +0000 (18:02 +0200)]
gh-89363: Skip threading test_is_alive_after_fork() if ASAN (#109835)
Skip test_is_alive_after_fork() of test_threading if Python is built
with Address Sanitizer (ASAN).
Radislav Chugunov [Mon, 25 Sep 2023 15:38:06 +0000 (18:38 +0300)]
gh-109795: `_thread.start_new_thread`: allocate thread bootstate using raw memory allocator (#109808)
Hugo van Kemenade [Mon, 25 Sep 2023 15:17:34 +0000 (09:17 -0600)]
Code: Update Donghee Na's name (#109744)
Victor Stinner [Mon, 25 Sep 2023 14:43:54 +0000 (16:43 +0200)]
gh-109723: Fix build of _testclinic_limited on WASM (#109842)
Make sure that the Py_BUILD_CORE macro is not defined.
Adam Turner [Mon, 25 Sep 2023 14:42:03 +0000 (15:42 +0100)]
GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (#109836)
Victor Stinner [Mon, 25 Sep 2023 14:21:01 +0000 (16:21 +0200)]
gh-109276: regrtest re-runs "env changed" tests (#109831)
When a test fails with "env changed" and --rerun option is used, the
test is now re-run in verbose mode in a fresh process.
Adam Turner [Mon, 25 Sep 2023 14:04:36 +0000 (15:04 +0100)]
GH-109190: Copyedit 3.12 What's New: Synchronise C API deprecations with the 3.12 branch (#109844)
Victor Stinner [Mon, 25 Sep 2023 13:50:15 +0000 (15:50 +0200)]
gh-109276: Enhance libregrtest results (#109828)
* Factorize code listing "bad / env changed / ..." tests.
* Add TestResults.is_all_good() method.
* Move "All 400 tests OK." to the end
* Move "Test suite interrupted by signal SIGINT." to the end.
Victor Stinner [Mon, 25 Sep 2023 13:27:36 +0000 (15:27 +0200)]
gh-109833: Fix asyncio test_wait_for() (#109834)
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
Adam Turner [Mon, 25 Sep 2023 12:38:07 +0000 (13:38 +0100)]
GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (#109751)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
DongWoo Son [Mon, 25 Sep 2023 12:37:40 +0000 (21:37 +0900)]
no-issue: Capitalise 'PhotoImage' (gh-108958)
Adam Turner [Mon, 25 Sep 2023 12:18:22 +0000 (13:18 +0100)]
GH-109190: Copyedit 3.12 What's New: Use the present tense (#109754)
Adam Turner [Mon, 25 Sep 2023 12:11:37 +0000 (13:11 +0100)]
GH-109190: Copyedit 3.12 What's New: Trivia (#109760)
Adam Turner [Mon, 25 Sep 2023 12:11:06 +0000 (13:11 +0100)]
GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (#109753)
Victor Stinner [Mon, 25 Sep 2023 11:24:19 +0000 (13:24 +0200)]
gh-104469: Convert _testcapi/vectorcall_limited.c to use AC (#109691)
Co-authored-by: nahyeon <55136494+nahyeon-an@users.noreply.github.com>
Nikita Sobolev [Mon, 25 Sep 2023 06:31:56 +0000 (09:31 +0300)]
gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (#109814)
Adam Turner [Mon, 25 Sep 2023 06:24:02 +0000 (07:24 +0100)]
GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (#109755)
Adam Turner [Mon, 25 Sep 2023 06:22:00 +0000 (07:22 +0100)]
GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal (#109768)
Gregory P. Smith [Sun, 24 Sep 2023 17:27:24 +0000 (10:27 -0700)]
Sync whatsnew with the edit I made in the 3.12 backport PR. (#109807)
A post main merge edit to the text was added in the 3.12 backport PR.
https://github.com/python/cpython/pull/109773/commits/
e38d7104b8f245e5db6d487932c44edf0d2c4762
This includes that in main. It's a minor edit over #109767 to resolve the comment there.
Alex Waygood [Sun, 24 Sep 2023 16:18:27 +0000 (17:18 +0100)]
gh-109653: Avoid a top-level import of `types` in `functools` (#109804)
Adam Turner [Sun, 24 Sep 2023 16:05:57 +0000 (17:05 +0100)]
GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (#109756)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Alex Waygood [Sun, 24 Sep 2023 14:07:23 +0000 (15:07 +0100)]
gh-109653: Remove unused imports in the `Lib/` directory (#109803)
Nikita Sobolev [Sun, 24 Sep 2023 09:49:02 +0000 (12:49 +0300)]
gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` (#109799)
gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst`
Alex Waygood [Sat, 23 Sep 2023 18:31:17 +0000 (19:31 +0100)]
gh-109653: Improve `enum` import time by avoiding import of `functools` (GH-109789)
Alex Waygood [Sat, 23 Sep 2023 07:46:35 +0000 (08:46 +0100)]
gh-109653: `typing.py`: improve import time by creating soft-deprecated members on demand (#109651)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Serhiy Storchaka [Sat, 23 Sep 2023 06:39:24 +0000 (09:39 +0300)]
gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522)
PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks
or sys.path_importer_cache or they are not list and dict correspondingly.
Previously it could return NULL without setting error in obscure cases,
crash or raise SystemError if these attributes have wrong type.
Serhiy Storchaka [Sat, 23 Sep 2023 06:35:30 +0000 (09:35 +0300)]
gh-109611: Add convenient C API function _PyFile_Flush() (GH-109612)
Serhiy Storchaka [Sat, 23 Sep 2023 06:31:20 +0000 (09:31 +0300)]
gh-109634: Use :samp: role (GH-109635)
Gregory P. Smith [Sat, 23 Sep 2023 05:04:20 +0000 (22:04 -0700)]
gh-100228: Document the os.fork threads DeprecationWarning. (#109767)
Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.
Many reviews and doc cleanup edits by Adam & Hugo. 🥳
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Nikita Sobolev [Sat, 23 Sep 2023 04:14:15 +0000 (07:14 +0300)]
gh-109505: Remove unnecessary `hasattr` checks from `test_asyncio` (#109506)
Adam Turner [Sat, 23 Sep 2023 04:07:06 +0000 (05:07 +0100)]
GH-95913: Add the release date for Python 3.11 (#109750)
Jelle Zijlstra [Sat, 23 Sep 2023 03:45:26 +0000 (20:45 -0700)]
Fix indentation in 3.13 What's New (#109769)
The previous layout made it look like the other three deprecations are part of the first one, when in fact they are independent.
The new layout is consistent with that used for sqlite3 in 3.12 (https://docs.python.org/3.13/whatsnew/3.12.html#deprecated).
Victor Stinner [Fri, 22 Sep 2023 21:49:32 +0000 (23:49 +0200)]
gh-109706: Fix multiprocessing test_nested_startmethod() (#109707)
Don't check order, queue items can be written in any order.
Tian Gao [Fri, 22 Sep 2023 21:13:31 +0000 (14:13 -0700)]
GH-107265: Add missing deoptimizations for ENTER_EXECUTOR's original opcode (GH-109420)
Nikita Sobolev [Fri, 22 Sep 2023 20:51:58 +0000 (23:51 +0300)]
gh-109721: Guard `_testinternalcapi` imports in tests (GH-109722)
Hugo van Kemenade [Fri, 22 Sep 2023 18:52:57 +0000 (12:52 -0600)]
Docs: Update Donghee Na's name (#109743)
Pablo Galindo Salgado [Fri, 22 Sep 2023 18:03:23 +0000 (19:03 +0100)]
gh-109596: Ensure repeated rules in the grammar are not allowed and fix incorrect soft keywords (#109606)
Irit Katriel [Fri, 22 Sep 2023 16:59:35 +0000 (17:59 +0100)]
gh-109719: Fix missing jump target labels when compiler reorders cold/warm blocks (#109734)
Tian Gao [Fri, 22 Sep 2023 16:55:48 +0000 (09:55 -0700)]
gh-109164: Replace `getopt` with `argparse` in pdb (#109165)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Adam Turner [Fri, 22 Sep 2023 14:56:07 +0000 (15:56 +0100)]
ACKS: Fix ordering; Correct Itamar Oren's surname; Add Adam Turner (#109737)
Victor Stinner [Fri, 22 Sep 2023 14:54:37 +0000 (16:54 +0200)]
gh-109723: Disable Py_BUILD_CORE in _testcapi (#109727)
Make sure that the internal C API is not tested by mistake by
_testcapi.
Undefine Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros in
Modules/_testcapi/parts.h: move code from _testcapimodule.c.
heaptype_relative.c and vectorcall_limited.c are using the limited C
API which is incompatible with the internal C API.
Move test_long_numbits() from _testcapi to _testinternalcapi since it
uses the internal C API "pycore_long.h".
Fix Modules/_testcapi/pyatomic.c: don't include Python.h directly,
just include _testcapi/parts.h.
Ajust "make check-c-globals" for these changes.
Adam Turner [Fri, 22 Sep 2023 13:32:32 +0000 (14:32 +0100)]
GH-109190: Copyedit 3.12 What's New: asyncio (#109661)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Adam Turner [Fri, 22 Sep 2023 13:31:49 +0000 (14:31 +0100)]
GH-109190: Copyedit 3.12 What's New: PEP 669 (#109658)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Victor Stinner [Fri, 22 Sep 2023 13:29:42 +0000 (15:29 +0200)]
gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710)
Replace harcoded sleep of 500 ms with synchronization using a pipe.
Fix also Process._feed_stdin(): catch also BrokenPipeError on
stdin.write(input), not only on stdin.drain().
Łukasz Langa [Fri, 22 Sep 2023 13:09:32 +0000 (15:09 +0200)]
Remove outdated docstring from the `quantify` itertools recipe (#109726)
Adam Turner [Fri, 22 Sep 2023 13:05:39 +0000 (14:05 +0100)]
GH-109190: Copyedit 3.12 What's New: Other Language Changes (#109660)
elfstrom [Fri, 22 Sep 2023 12:55:56 +0000 (14:55 +0200)]
gh-105829: Fix concurrent.futures.ProcessPoolExecutor deadlock (#108513)
This fixes issue #105829, https://github.com/python/cpython/issues/105829
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Co-authored-by: Chris Withers <chris@withers.org>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Adam Turner [Fri, 22 Sep 2023 12:53:53 +0000 (13:53 +0100)]
GH-109190: Copyedit 3.12 What's New: PEP 684 (#109657)
Adam Turner [Fri, 22 Sep 2023 12:50:20 +0000 (13:50 +0100)]
GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (#109665)
bytecode: suppress reference to removed LOAD_METHOD
EliseevEgor [Fri, 22 Sep 2023 12:26:27 +0000 (15:26 +0300)]
gh-106584: Fix exit code for unittest in Python 3.12 (#106588)
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Adam Turner [Fri, 22 Sep 2023 06:29:48 +0000 (07:29 +0100)]
GH-109190: Copyedit 3.12 What's New: calendar (#109662)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Adam Turner [Fri, 22 Sep 2023 06:28:13 +0000 (07:28 +0100)]
GH-109190: Copyedit 3.12 What's New: tokenize (#109663)
Adam Turner [Fri, 22 Sep 2023 05:37:44 +0000 (06:37 +0100)]
GH-109190: Copyedit 3.12 What's New: Consistently show module names (#109664)
Consistently show module names
Victor Stinner [Fri, 22 Sep 2023 02:43:48 +0000 (04:43 +0200)]
gh-109566: Fix typo in PCbuild/rt.bat (#109701)
Victor Stinner [Fri, 22 Sep 2023 01:13:31 +0000 (03:13 +0200)]
gh-109702: Increase concurrent_futures deadlock timeout (#109703)
Replace SHORT_TIMEOUT with LONG_TIMEOUT in test_deadlock of
test_concurrent_futures.
AN Long [Fri, 22 Sep 2023 00:19:48 +0000 (08:19 +0800)]
gh-108996: fix and enable test_msvcrt (#109226)
* Add _testconsole.flush_console_input_buffer() function.
* test_kbhit(), test_getwch() and test_getwche() now call
flush_console_input_buffer().
* Don't override sys.stdin anymore (not needed).
Victor Stinner [Thu, 21 Sep 2023 23:21:07 +0000 (01:21 +0200)]
gh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE (#109690)
Fix make check-c-globals: complete USE_LIMITED_C_API list of the
c-analyzer.
Victor Stinner [Thu, 21 Sep 2023 22:59:08 +0000 (00:59 +0200)]
gh-108948: Skip test_tarfile.test_modes() on EFTYPE error (#109697)
On FreeBSD, regular users cannot set the sticky bit. Skip the test if
chmod() fails with EFTYPE error.