Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in ↵ | Pablo Galindo Salgado | 2024-08-23 | 2 | -1/+4 | |
| | | | | | the tokenizer (#123263) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> | |||||
* | GH-123232: Fix "not specialized" stats (GH-123236) | Mark Shannon | 2024-08-23 | 4 | -2/+18 | |
| | ||||||
* | gh-121404: compiler_annassign --> codegen_annassign (#123245) | Irit Katriel | 2024-08-23 | 1 | -63/+100 | |
| | ||||||
* | GH-123040: Specialize shadowed `LOAD_ATTR`. (GH-123219) | Mark Shannon | 2024-08-23 | 7 | -201/+334 | |
| | ||||||
* | gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no ↵ | Bar Harel | 2024-08-23 | 4 | -11/+38 | |
| | | | | longer hide exceptions (GH-123214) | |||||
* | GH-99108: Amend Modules/Setup (#123146) | Jonathan Protzenko | 2024-08-23 | 1 | -1/+1 | |
| | ||||||
* | gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233) | Sergey B Kirpichev | 2024-08-22 | 2 | -1/+5 | |
| | ||||||
* | gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH_HINT`` ↵ | Donghee Na | 2024-08-22 | 6 | -18/+42 | |
| | | | | (gh-123092) | |||||
* | gh-121404: remove redundant c_nestlevel. more compiler abstractions. more ↵ | Irit Katriel | 2024-08-22 | 1 | -118/+111 | |
| | | | | macro usage consistency (#123225) | |||||
* | gh-123165: correct tests for `dis.dis(func, show_positions=True)` (#123220) | Bénédikt Tran | 2024-08-22 | 1 | -34/+38 | |
| | ||||||
* | GH-123197: Only count an instruction as deferred if it hasn't deopted first. ↵ | Mark Shannon | 2024-08-22 | 4 | -30/+33 | |
| | | | | | (GH-123222) Only count an instruction as deferred if hasn't deopted first. | |||||
* | gh-122546: use same filename for different exceptions in new repl (#123217) | Sergey B Kirpichev | 2024-08-22 | 4 | -10/+14 | |
| | | | | | * gh-122546: use same filename for different exceptions in new repl * +1 | |||||
* | GH-118093: Specialize calls to non-vectorcall classes as ↵ | Brandt Bucher | 2024-08-22 | 1 | -5/+1 | |
| | | | | | `CALL_NON_PY_GENERAL` (GH-123212) Specialize classes without vectorcall as CALL_NON_PY_GENERAL | |||||
* | gh-122712: Test `CALL_ALLOC_AND_ENTER_INIT` handles reassignment of ↵ | mpage | 2024-08-22 | 1 | -7/+32 | |
| | | | | `__code__` (GH-122713) | |||||
* | gh-123142: Fix too wide source locations in tracebacks of exceptions from ↵ | Irit Katriel | 2024-08-21 | 8 | -22/+122 | |
| | | | | broken iterables in comprehensions (#123173) | |||||
* | GH-115776: Allow any fixed sized object to have inline values (GH-123192) | Mark Shannon | 2024-08-21 | 13 | -38/+61 | |
| | ||||||
* | gh-121404: split fblock handling into compiler_* and codegen_* parts (#123199) | Irit Katriel | 2024-08-21 | 1 | -15/+24 | |
| | ||||||
* | gh-123165: make `dis` functions render positions on demand (#123168) | Bénédikt Tran | 2024-08-21 | 5 | -37/+209 | |
| | ||||||
* | Fix typos in comments (#123201) | Wulian | 2024-08-21 | 9 | -13/+13 | |
| | ||||||
* | GH-123197: Increment correct stat for CALL_KW (GH-123200) | Mark Shannon | 2024-08-21 | 2 | -2/+2 | |
| | ||||||
* | GH-123185: Check for `NULL` after calling `_PyEvalFramePushAndInit` (GH-123194) | Mark Shannon | 2024-08-21 | 5 | -4/+29 | |
| | ||||||
* | gh-85110: Preserve relative path in URL without netloc in ↵ | Serhiy Storchaka | 2024-08-21 | 3 | -9/+38 | |
| | | | | urllib.parse.urlunsplit() (GH-123179) | |||||
* | gh-123084: Turn `shutil.ExecError` into a deprecated alias of `RuntimeError` ↵ | Peter Bierma | 2024-08-21 | 4 | -4/+25 | |
| | | | | (#123125) | |||||
* | gh-122981: Fix inspect.getsource() for generated classes with Python base ↵ | Serhiy Storchaka | 2024-08-20 | 4 | -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 Shannon | 2024-08-20 | 17 | -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 Katriel | 2024-08-20 | 3 | -1/+22 | |
| | ||||||
* | gh-122909: Pass ftp error strings to URLError constructor (#122913) | Jeremy Hylton | 2024-08-20 | 3 | -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 Zijlstra | 2024-08-19 | 1 | -16/+16 | |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | |||||
* | gh-123149: Suppress verbose repr in new REPL (#123151) | James | 2024-08-19 | 1 | -2/+2 | |
| | ||||||
* | gh-123123: Fix display of syntax errors covering multiple lines (#123131) | Pablo Galindo Salgado | 2024-08-19 | 3 | -7/+45 | |
| | | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com> | |||||
* | gh-121404: rename functions to use codegen_* prefix. Use macros more ↵ | Irit Katriel | 2024-08-19 | 1 | -349/+303 | |
| | | | | consistently. (#123139) | |||||
* | gh-121804: Always show error location for SyntaxError's in new repl (#121886) | Sergey B Kirpichev | 2024-08-19 | 5 | -10/+36 | |
| | ||||||
* | gh-121404: pass metadata to compiler_enter_scope (optionally) so that ↵ | Irit Katriel | 2024-08-19 | 1 | -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 Kirpichev | 2024-08-19 | 2 | -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 Lacerda | 2024-08-18 | 4 | -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) | sobolevn | 2024-08-18 | 1 | -0/+50 | |
| | ||||||
* | gh-123110: correct note about _Bool in the struct module docs (GH-123111) | Sergey B Kirpichev | 2024-08-18 | 1 | -3/+3 | |
| | ||||||
* | gh-82378 fix sys.tracebacklimit in pyrepl, approach 2 (#123062) | CF Bolz-Tereick | 2024-08-18 | 4 | -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 Turner | 2024-08-17 | 1 | -17/+32 | |
| | ||||||
* | gh-123022: Fix crash with `Py_Initialize` in background thread (#123052) | Sam Gross | 2024-08-17 | 4 | -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 Gross | 2024-08-17 | 1 | -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 Storchaka | 2024-08-17 | 3 | -26/+47 | |
| | | | | | | backslashes (GH-123075) This fixes CVE-2024-7592. | |||||
* | GH-109975: Copyedit 3.13 What's New: Other Language Changes (#123086) | Adam Turner | 2024-08-17 | 1 | -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 Kirpichev | 2024-08-17 | 1 | -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) | mathysEthical | 2024-08-17 | 1 | -1/+1 | |
| | ||||||
* | Remove unneeded verb in the phrase in sys.rst (#122718) | Rafael Fontenelle | 2024-08-17 | 1 | -1/+1 | |
| | ||||||
* | gh-122519: Adding socket module shutdown() constants description (#122543) | Damien | 2024-08-17 | 1 | -0/+7 | |
| | ||||||
* | gh-122681: remove m_atan2()/c_atan2() helpers (#122715) | Sergey B Kirpichev | 2024-08-17 | 3 | -42/+3 | |
| | ||||||
* | gh-123087: ``Lib/test/test_unittest/testmock/testasync.py``: Replace usage ↵ | Kirill Podoprigora | 2024-08-17 | 1 | -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 Maloney | 2024-08-16 | 3 | -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 ``` |