summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-121404: split fblock handling into compiler_* and codegen_* parts (#123199)Irit Katriel2024-08-211-15/+24
|
* gh-123165: make `dis` functions render positions on demand (#123168)Bénédikt Tran2024-08-215-37/+209
|
* Fix typos in comments (#123201)Wulian2024-08-219-13/+13
|
* GH-123197: Increment correct stat for CALL_KW (GH-123200)Mark Shannon2024-08-212-2/+2
|
* GH-123185: Check for `NULL` after calling `_PyEvalFramePushAndInit` (GH-123194)Mark Shannon2024-08-215-4/+29
|
* gh-85110: Preserve relative path in URL without netloc in ↵Serhiy Storchaka2024-08-213-9/+38
| | | | urllib.parse.urlunsplit() (GH-123179)
* gh-123084: Turn `shutil.ExecError` into a deprecated alias of `RuntimeError` ↵Peter Bierma2024-08-214-4/+25
| | | | (#123125)
* gh-122981: Fix inspect.getsource() for generated classes with Python base ↵Serhiy Storchaka2024-08-204-4/+66
| | | | | | classes (GH-123001) Look up __firstlineno__ only in the class' dict, without searching in base classes.
* GH-118093: Make `CALL_ALLOC_AND_ENTER_INIT` suitable for tier 2. (GH-123140)Mark Shannon2024-08-2017-299/+464
| | | | | * Convert CALL_ALLOC_AND_ENTER_INIT to micro-ops such that tier 2 supports it * Allow inexact arguments for CALL_ALLOC_AND_ENTER_INIT.
* gh-123048: Fix missing source location in pattern matching code (#123167)Irit Katriel2024-08-203-1/+22
|
* gh-122909: Pass ftp error strings to URLError constructor (#122913)Jeremy Hylton2024-08-203-2/+26
| | | | | | | | | | | * pass the original string error message from the ftplib error to URLError() * Update request.py Change error string for ftp error to be consistent with other errors reported for ftp * Add NEWS entry for change to urllib.request for ftp errors. * Track the change in the ftp error message in the test.
* gh-109975: Copyedit What's New in Python 3.13 (#123150)Jelle Zijlstra2024-08-191-16/+16
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-123149: Suppress verbose repr in new REPL (#123151)James2024-08-191-2/+2
|
* gh-123123: Fix display of syntax errors covering multiple lines (#123131)Pablo Galindo Salgado2024-08-193-7/+45
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-121404: rename functions to use codegen_* prefix. Use macros more ↵Irit Katriel2024-08-191-349/+303
| | | | consistently. (#123139)
* gh-121804: Always show error location for SyntaxError's in new repl (#121886)Sergey B Kirpichev2024-08-195-10/+36
|
* gh-121404: pass metadata to compiler_enter_scope (optionally) so that ↵Irit Katriel2024-08-191-58/+82
| | | | codegen functions don't need to set it on the code unit (#123078)
* gh-122081: fixed crash in decimal.IEEEContext() (#122082)Sergey B Kirpichev2024-08-192-2/+4
| | | | | | | | | | | | | | | | | | | | | | | * gh-122081: fixed crash in decimal.IEEEContext() Now $ ./configure CFLAGS=-DEXTRA_FUNCTIONALITY -q && make -s && \ ./python -m test test_decimal - PASS * Apply suggestions from code review Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> * Update Misc/NEWS.d/next/Library/2024-07-21-10-45-24.gh-issue-122081.dNrYMq.rst * Apply suggestions from code review --------- Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-123049: configparser: Allow to create the unnamed section from scratch. ↵Pedro Lacerda2024-08-184-13/+52
| | | | | | | | | (#123077) --------- Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-116789: Add more tests for `inspect.getmembers` (#116802)sobolevn2024-08-181-0/+50
|
* gh-123110: correct note about _Bool in the struct module docs (GH-123111)Sergey B Kirpichev2024-08-181-3/+3
|
* gh-82378 fix sys.tracebacklimit in pyrepl, approach 2 (#123062)CF Bolz-Tereick2024-08-184-16/+54
| | | | Make sure that pyrepl uses the same logic for sys.tracebacklimit as both the basic repl and the standard sys.excepthook
* Docs: Run ``latexmk`` in parallel when creating PDFs (#123113)Adam Turner2024-08-171-17/+32
|
* gh-123022: Fix crash with `Py_Initialize` in background thread (#123052)Sam Gross2024-08-174-5/+40
| | | | | | | | | | | | Check that the current default heap is initialized in `_mi_os_get_aligned_hint` and `mi_os_claim_huge_pages`. The mimalloc function `_mi_os_get_aligned_hint` assumes that there is an initialized default heap. This is true for our main thread, but not for background threads. The problematic code path is usually called during initialization (i.e., `Py_Initialize`), but it may also be called if the program allocates large amounts of memory in total. The crash only affected the free-threaded build.
* gh-122974: Suppress GCC array bound warnings in free-threaded build (#123071)Sam Gross2024-08-171-0/+12
| | | | GCC 11 and newer warn about the access to `unique_id` in non-debug builds due to inlining the call on static non-heap types.
* gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with ↵Serhiy Storchaka2024-08-173-26/+47
| | | | | | backslashes (GH-123075) This fixes CVE-2024-7592.
* 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
|