summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-109975: Copyedit 3.13 What's New: Other Language Changes (#123086)Adam Turner2024-08-171-102/+156
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-121477: mention new PyLong_*Bytes() functions in PyLong_FromString() ↵Sergey B Kirpichev2024-08-171-3/+3
| | | | | | | | | | | (#121478) * gh-121477: mention new PyLong_*Bytes() functions in PyLong_FromString() * Update Doc/c-api/long.rst --------- Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* fix typo in dis.rst (#121612)mathysEthical2024-08-171-1/+1
|
* Remove unneeded verb in the phrase in sys.rst (#122718)Rafael Fontenelle2024-08-171-1/+1
|
* gh-122519: Adding socket module shutdown() constants description (#122543)Damien2024-08-171-0/+7
|
* gh-122681: remove m_atan2()/c_atan2() helpers (#122715)Sergey B Kirpichev2024-08-173-42/+3
|
* gh-123087: ``Lib/test/test_unittest/testmock/testasync.py``: Replace usage ↵Kirill Podoprigora2024-08-171-19/+15
| | | | | of the deprecated ``asyncio.iscoroutinefunction`` with the ``inspect.iscoroutinefunction`` (#123088) asyncio.iscoroutinefunction -> inspect.iscoroutinefunction
* GH-120754: Disable buffering in Path.read_bytes (#122111)Cody Maloney2024-08-163-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Path.read_bytes()` is used to read a whole file. buffering / BufferedIO is focused around making small, possibly interleaved, read/write efficient which doesn't add value in this case. On my Mac, running the benchmark: ```python import pyperf from pathlib import Path def read_all(all_paths): for p in all_paths: p.read_bytes() def read_file(path_obj): path_obj.read_bytes() all_rst = list(Path("Doc").glob("**/*.rst")) all_py = list(Path(".").glob("**/*.py")) assert all_rst, "Should have found rst files" assert all_py, "Should have found python source files" runner = pyperf.Runner() runner.bench_func("read_file_small", read_file, Path("Doc/howto/clinic.rst")) runner.bench_func("read_file_large", read_file, Path("Doc/c-api/typeobj.rst")) ``` before: ```python ..................... read_file_small: Mean +- std dev: 6.80 us +- 0.07 us ..................... read_file_large: Mean +- std dev: 10.8 us +- 0.2 us ```` after: ```python ..................... read_file_small: Mean +- std dev: 5.67 us +- 0.05 us ..................... read_file_large: Mean +- std dev: 9.77 us +- 0.52 us ```
* gh-118658: Return consistent types from `get_un/verified_chain` in ↵Mateusz Nowak2024-08-164-2/+86
| | | | | `SSLObject` and `SSLSocket` (#118669) Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* GH-118093: Specialize `CALL_KW` (GH-123006)Mark Shannon2024-08-1617-273/+1083
|
* gh-121404: rename compiler_addop* to codegen_addop*, and replace direct ↵Irit Katriel2024-08-161-96/+102
| | | | usages by the macros (#123043)
* mention pypy somewhat more prominently in the pyrepl section of whatsnew ↵CF Bolz-Tereick2024-08-161-1/+3
| | | | (#123063)
* gh-123046: Fix regexp to catch cases where the module name is omitted from ↵Kirill Podoprigora2024-08-161-12/+19
| | | | | the weakref repr (#123047) Co-authored-by: sobolevn <mail@sobolevn.me>
* gh-116622: Add Android test script (#121595)Malcolm Smith2024-08-1614-92/+636
| | | | | | | Adds a script for running the test suite on Android emulator devices. Starting with a fresh install of the Android Commandline tools; the script manages installing other requirements, starting the emulator (if required), and retrieving results from that emulator.
* gh-116608: Apply style and compatibility changes from importlib_metadata. ↵Jason R. Coombs2024-08-152-36/+50
| | | | (#123028)
* Add debug offsets for free threaded builds (#123041)Pablo Galindo Salgado2024-08-154-5/+86
|
* GH-121634: have `wasi.py` accept the host target triple as an argument ↵Brett Cannon2024-08-152-6/+13
| | | | (GH-123030)
* gh-117139: Garbage collector support for deferred refcounting (#122956)Sam Gross2024-08-156-21/+122
| | | | | | | | | | The free-threaded GC now visits interpreter stacks to keep objects that use deferred reference counting alive. Interpreter frames are zero initialized in the free-threaded GC so that the GC doesn't see garbage data. This is a temporary measure until stack spilling around escaping calls is implemented. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-122584: Import mimalloc headers in a C++ context (#122587)Michael Droettboom2024-08-151-0/+9
|
* gh-113190: Reenable non-debug interned string cleanup (GH-113601)Eddie Elizondo2024-08-155-42/+42
|
* gh-121404: split compiler's push/pop_inlined_comprehension_state into ↵Irit Katriel2024-08-151-63/+102
| | | | codegen and compiler parts (#123021)
* gh-99108: Inform HACL when explicit_bzero is unavailable (GH-123027)Malcolm Smith2024-08-153-1/+22
| | | Inform HACL whether explicit_bzero is available
* GH-109975: Copyedit 3.13 What's New: New Features (#122990)Adam Turner2024-08-152-181/+199
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* GH-103484: Tell linkcheck to ignore debian manpage redirects (#123019)Rafael Fontenelle2024-08-141-0/+2
|
* gh-112301: Add warning count to warning check tooling (#122711)Nate Ohlson2024-08-144-14/+46
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-123005: Add version added in enum.Flag.__len__ (GH-123007)Damien2024-08-141-0/+2
|
* GH-118093: Turn some DEOPT_IFs into EXIT_IFs (GH-122998)Brandt Bucher2024-08-145-42/+42
|
* GH-113464: Speed up JIT builds (GH-122839)Brandt Bucher2024-08-142-5/+19
|
* gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (#122966)sobolevn2024-08-142-6/+20
|
* GH-120024: Remove `CHECK_EVAL_BREAKER` macro. (GH-122968)Mark Shannon2024-08-1416-517/+820
| | | | | * Factor some instructions into micro-ops to isolate CHECK_EVAL_BREAKER for escape analysis * Eliminate CHECK_EVAL_BREAKER macro
* Fix doctrees directory for the gettext builder (#122997)Rafael Fontenelle2024-08-141-1/+1
|
* gh-111178: Avoid calling long_hash from incompatible pointer type (GH-122972)Bénédikt Tran2024-08-141-2/+3
| | | Make `long_hash` compatible with `hashfunc`.
* gh-122985: add SYMBOL_TO_SCOPE macro in symtable (#122986)Irit Katriel2024-08-143-9/+7
|
* Ensure that iOS test re-runs don't try to spawn a process. (#122994)Russell Keith-Magee2024-08-141-0/+1
| | | Adds the --single-process option to the iOS test runner to ensure re-runs execute in the same process.
* Add a --rerun option to the iOS testbed. (#122992)Russell Keith-Magee2024-08-141-0/+1
| | | Enable --rerun when running tests on iOS.
* GH-121723: Skip test_config_queue_handler_multiprocessing_context in ↵Bénédikt Tran2024-08-132-1/+2
| | | | emulated JIT CI (#122969)
* gh-99108: Add HACL* Blake2 implementation to hashlib (GH-119316)Jonathan Protzenko2024-08-1355-5133/+11594
| | | | | | | This replaces the existing hashlib Blake2 module with a single implementation that uses HACL\*'s Blake2b/Blake2s implementations. We added support for all the modes exposed by the Python API, including tree hashing, leaf nodes, and so on. We ported and merged all of these changes upstream in HACL\*, added test vectors based on Python's existing implementation, and exposed everything needed for hashlib. This was joint work done with @R1kM. See the PR for much discussion and benchmarking details. TL;DR: On many systems, 8-50% faster (!) than `libb2`, on some systems it appeared 10-20% slower than `libb2`.
* gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952)Eric Snow2024-08-135-12/+32
| | | As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately.
* GH-85633: Fix pathlib test failures on filesystems without world-write. ↵Barney Gale2024-08-131-8/+12
| | | | | | | (#122883) Replace `umask(0)` with `umask(0o002)` so the created files are not world-writable, and replace `umask(0o022)` with `umask(0o026)` to check that permissions for 'others' can still be set.
* Fix `print` usage in `turtle` doctests (#122940)sobolevn2024-08-131-3/+3
|
* gh-122873: Allow "python -m json" to work (#122884)Trey Hunner2024-08-138-45/+77
| | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* GH-109975: Copyedit 3.13 What's New: Release Highlights (#122958)Adam Turner2024-08-134-58/+119
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-122390: Replace `_Py_GetbaseOpcode` with `_Py_GetBaseCodeUnit` (GH-122942)Mark Shannon2024-08-1316-326/+299
|
* GH-122821: Simplify compilation of while statements to ensure consistency of ↵Mark Shannon2024-08-136-87/+122
| | | | offsets for sys.monitoring (GH-122934)
* GH-122578: update to WASI SDK 24 (GH-122960)Brett Cannon2024-08-123-4/+5
|
* GH-118093: Handle some polymorphism before requiring progress in tier two ↵Brandt Bucher2024-08-126-42/+73
| | | | (GH-122843)
* gh-117482: Make the Slot Wrapper Inheritance Tests Much More Thorough ↵Eric Snow2024-08-126-54/+268
| | | | | | | | | | (gh-122867) There were a still a number of gaps in the tests, including not looking at all the builtin types and not checking wrappers in subinterpreters that weren't in the main interpreter. This fixes all that. I considered incorporating the names of the PyTypeObject fields (a la gh-122866), but figured doing so doesn't add much value.
* gh-117139: Replace _PyList_FromArraySteal with stack ref variant (#122830)Sam Gross2024-08-126-34/+13
| | | | | | | This replaces `_PyList_FromArraySteal` with `_PyList_FromStackRefSteal`. It's functionally equivalent, but takes a `_PyStackRef` array instead of an array of `PyObject` pointers. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-117139: Fix a few `_PyStackRef` related bugs (#122831)Sam Gross2024-08-123-16/+14
| | | | | | `BUILD_SET` should use a borrow instead of a steal. The cleanup in `_DO_CALL` `CONVERSION_FAILED` was incorrect. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-122944: Fix incorrect prompt strings in the Python Tutorial (#122949)Damien2024-08-124-10/+10
| | | | In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter.