summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-109961: Docs: Fix incorrect rendering of `__replace__` in `copy.rst` ↵Nikita Sobolev2023-09-282-13/+21
| | | | (#109968)
* gh-109972: Split test_gdb.py into test_gdb package (#109977)Victor Stinner2023-09-2811-1066/+1124
| | | | | | | | | | | | | | Split test_gdb.py file into a test_gdb package made of multiple tests, so tests can now be run in parallel. * Create Lib/test/test_gdb/ directory. * Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory. * Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py. * Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py. * Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().
* gh-109991: Update macOS installer to use OpenSSL 3.0.10. (GH-110003)Ned Deily2023-09-282-3/+4
|
* gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and ↵Ned Deily2023-09-283-7/+9
| | | | multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002)
* GH-109190: Copyedit 3.12 What's New: Bytecode (#109821)Adam Turner2023-09-282-8/+28
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-109812: Fix phrasing for `collections.Counter` (gh-109813)Jacob Coffee2023-09-282-1/+2
|
* gh-109818: `reprlib.recursive_repr` copies `__type_params__` (#109819)Nikita Sobolev2023-09-283-0/+14
|
* gh-104909: Split some more insts into ops (#109943)Guido van Rossum2023-09-278-115/+519
| | | | | | | | | | | | | | | | | | | | 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! :-(
* gh-109955 : Update state transition comments for asyncio.Task (#109910)Kristján Valur Jónsson2023-09-271-7/+17
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109793: Allow Switching Interpreters During Finalization (gh-109794)Eric Snow2023-09-277-3/+96
| | | Essentially, we should check the thread ID rather than the thread state pointer.
* Enhance TypedDict docs around required/optional keys (#109547)Jelle Zijlstra2023-09-271-0/+15
| | | | | | 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.
* gh-109461: Update logging module lock to use context manager (#109462)Dale Collison2023-09-276-176/+81
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-109615: Fix support test_copy_python_src_ignore() on WASM (#109970)Victor Stinner2023-09-271-1/+9
| | | | Not only check if src_dir exists, but look also for Lib/os.py landmark.
* gh-109740: Use 't' in `--disable-gil` SOABI (#109922)Sam Gross2023-09-276-48/+71
| | | | Shared libraries for CPython 3.13 are now marked with a 't' for threading. For example, `binascii.cpython-313t-darwin.so`.
* GH-109190: Copyedit 3.12 What's New: Release highlights (#109770)Adam Turner2023-09-271-167/+254
|
* gh-109566: regrtest doesn't enable --rerun if --python is used (#109969)Victor Stinner2023-09-272-3/+12
| | | | regrtest: --fast-ci and --slow-ci options no longer enable --rerun if the --python option is used.
* gh-101100: Fix sphinx warnings in `library/devmode.rst` (#109963)Nikita Sobolev2023-09-272-3/+3
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109923: set line number on the POP_TOP that follows a RETURN_GENERATOR ↵Irit Katriel2023-09-273-12/+9
| | | | (#109924)
* gh-109615: Fix support test_copy_python_src_ignore() (#109958)Victor Stinner2023-09-275-8/+30
| | | | | | | | | | 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".
* gh-109566: Fix regrtest Python options for WASM/WASI (#109954)Victor Stinner2023-09-273-8/+20
| | | | | 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.
* gh-109565: Fix concurrent.futures test_future_times_out() (#109949)Victor Stinner2023-09-271-2/+5
| | | | as_completed() uses a timeout of 100 ms instead of 10 ms. Windows monotonic clock resolution is around 15.6 ms.
* gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)Victor Stinner2023-09-275-56/+59
| | | | | | | | | 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.
* GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) (#109927)Adam Turner2023-09-271-15/+17
| | | Merge the two ``os`` entries
* Remove loop from docstring for asyncio.streams.open_connection (#108528)Tom Gillespie2023-09-271-3/+2
|
* gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (#109931)Victor Stinner2023-09-272-9/+8
|
* gh-109098: Fuzz re module instead of internal sre (#109911)Ammar Askar2023-09-262-30/+21
| | | | | * gh-109098: Fuzz re module instead of internal sre * Fix c-analyzer globals test failure * Put globals exception in ignored.tsv
* gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (#109928)Victor Stinner2023-09-261-4/+9
|
* gh-109566: Fix regrtest code adding Python options (#109926)Victor Stinner2023-09-264-38/+62
| | | | | | * 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.
* GH-109190: Copyedit 3.12 What's New: Deprecations (#109766)Adam Turner2023-09-261-92/+153
|
* Fix argument ordering of embuilder command documented in ↵OmniTroid2023-09-261-1/+1
| | | | `Tools/wasm/README.md` (GH-109863)
* gh-109845: Make test_ftplib more stable under load (GH-109912)Serhiy Storchaka2023-09-261-20/+18
| | | | recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
* gh-109276, gh-109508: Fix libregrtest stdout (#109903)Victor Stinner2023-09-264-54/+27
| | | | | | | | | 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.
* Remove concurrent.futures deadcode: process_result_item() (#109906)Victor Stinner2023-09-261-18/+8
| | | | process_result_item() cannot be called with an int anymore, the protocol changed.
* gh-109566: regrtest reexecutes the process (#109909)Victor Stinner2023-09-267-14/+107
| | | | | | | | | | | | | 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.
* GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)Barney Gale2023-09-264-30/+21
| | | | Treat symlink loops like other errors: in strict mode, raise `OSError`, and in non-strict mode, do not raise any exception.
* gh-109566, regrtest: Add --fast-ci and --slow-ci options (#109570)Victor Stinner2023-09-2611-51/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* More informative docstrings in the random module (gh-109745)Raymond Hettinger2023-09-261-5/+34
|
* no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902)lohaswinner2023-09-261-1/+1
|
* gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (#109629)Antoine Pitrou2023-09-267-2/+95
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-109832: concurrent.futures test_deadlock restores sys.stderr (#109887)Victor Stinner2023-09-261-0/+6
| | | | | 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().
* gh-109631: Allow interruption of short repeated regex matches (GH-109867)Serhiy Storchaka2023-09-263-2/+8
| | | | Counting for signal checking now continues in new match from the point where it ended in the previous match instead of starting from 0.
* gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (#109881)Nikita Sobolev2023-09-262-11/+9
|
* gh-109370: Fix unexpected traceback output in test_concurrent_futures ↵Serhiy Storchaka2023-09-262-3/+3
| | | | | | | | | (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.
* gh-109739: regrtest disables load tracker if refleak (#109871)Victor Stinner2023-09-262-3/+16
| | | | regrtest: Fix reference leak check on Windows. Disable the load tracker on Windows in the reference leak check mode (-R option).
* gh-109401: Fix threading barrier test_default_timeout() (#109875)Victor Stinner2023-09-261-4/+6
| | | | Increase timeouts. Barrier default timeout should be long enough to spawn 4 threads on a slow CI.
* gh-88233: zipfile: refactor _strip_extra (#102084)Jason R. Coombs2023-09-253-46/+62
| | | | | | | | | * 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.
* gh-109748: Fix venv test_zippath_from_non_installed_posix() (#109872)Victor Stinner2023-09-252-1/+12
| | | | | 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.
* gh-109823: Adjust labels in compiler when removing an empty basic block ↵Irit Katriel2023-09-253-1/+15
| | | | which is a jump target (#109839)
* gh-109599: Add types.CapsuleType (#109600)Antoine Pitrou2023-09-255-1/+21
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-89363: Skip threading test_is_alive_after_fork() if ASAN (#109835)Victor Stinner2023-09-252-1/+5
| | | | Skip test_is_alive_after_fork() of test_threading if Python is built with Address Sanitizer (ASAN).