summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove comment from pystate created in 2003 (#123259)Anthony Shaw2024-08-241-5/+0
|
* gh-123228: fix return type for _ReadlineWrapper.get_line_buffer() (#123281)Sergey B Kirpichev2024-08-243-5/+13
| | | Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* GH-122890: Fix low-level error handling in `pathlib.Path.copy()` (#122897)Barney Gale2024-08-242-16/+90
| | | | | | | | | Give unique names to our low-level FD copying functions, and try each one in turn. Handle errors appropriately for each implementation: - `fcntl.FICLONE`: suppress `EBADF`, `EOPNOTSUPP`, `ETXTBSY`, `EXDEV` - `posix._fcopyfile`: suppress `EBADF`, `ENOTSUP` - `os.copy_file_range`: suppress `ETXTBSY`, `EXDEV` - `os.sendfile`: suppress `ENOTSOCK`
* GH-109975: Copyedit 3.13 What's New: Improved Modules (#123132)Adam Turner2024-08-242-355/+480
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Docs: Fix Makefile syntax (#123287)Adam Turner2024-08-241-2/+2
|
* gh-123243: Fix reference leak in `_decimal` (#123244)neonene2024-08-242-2/+25
|
* gh-117376: Make `Py_DECREF` a macro in ceval.c in free-threaded build (#122975)Sam Gross2024-08-232-27/+53
| | | | | | | | | | | `Py_DECREF` and `PyStackRef_CLOSE` are now implemented as macros in the free-threaded build in ceval.c. There are two motivations; * MSVC has problems inlining functions in ceval.c in the PGO build. * We will want to mark escaping calls in order to spill the stack pointer in ceval.c and we will want to do this around `_Py_Dealloc` (or `_Py_MergeZeroLocalRefcount` or `_Py_DecRefShared`), not around the entire `Py_DECREF` or `PyStackRef_CLOSE` call.
* gh-123205: `Python/bytecodes.c`: Fix compiler warning (#123206)Kirill Podoprigora2024-08-233-3/+3
| | | Fix MSVC warning "conversion from '__int64' to 'int'"
* GH-73991: Disallow copying directory into itself via `pathlib.Path.copy()` ↵Barney Gale2024-08-232-14/+140
| | | | (#122924)
* gh-121404: more compiler_* -> codegen_*, class_body and comprehensions (#123262)Irit Katriel2024-08-231-59/+82
|
* Fix typo mentioning threads instead of tasks (#123203)Kevin Evans2024-08-231-3/+3
|
* gh-122272: Guarantee specifiers %F and %C for datetime.strftime to be ↵blhsing2024-08-237-14/+145
| | | | 0-padded (GH-122436)
* GH-122298: Restore printing of GC stats (GH-123261)Mark Shannon2024-08-232-0/+28
|
* gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in ↵Pablo Galindo Salgado2024-08-232-1/+4
| | | | | the tokenizer (#123263) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* GH-123232: Fix "not specialized" stats (GH-123236)Mark Shannon2024-08-234-2/+18
|
* gh-121404: compiler_annassign --> codegen_annassign (#123245)Irit Katriel2024-08-231-63/+100
|
* GH-123040: Specialize shadowed `LOAD_ATTR`. (GH-123219)Mark Shannon2024-08-237-201/+334
|
* gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no ↵Bar Harel2024-08-234-11/+38
| | | | longer hide exceptions (GH-123214)
* GH-99108: Amend Modules/Setup (#123146)Jonathan Protzenko2024-08-231-1/+1
|
* gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233)Sergey B Kirpichev2024-08-222-1/+5
|
* gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH_HINT`` ↵Donghee Na2024-08-226-18/+42
| | | | (gh-123092)
* gh-121404: remove redundant c_nestlevel. more compiler abstractions. more ↵Irit Katriel2024-08-221-118/+111
| | | | macro usage consistency (#123225)
* gh-123165: correct tests for `dis.dis(func, show_positions=True)` (#123220)Bénédikt Tran2024-08-221-34/+38
|
* GH-123197: Only count an instruction as deferred if it hasn't deopted first. ↵Mark Shannon2024-08-224-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 Kirpichev2024-08-224-10/+14
| | | | | * gh-122546: use same filename for different exceptions in new repl * +1
* GH-118093: Specialize calls to non-vectorcall classes as ↵Brandt Bucher2024-08-221-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 ↵mpage2024-08-221-7/+32
| | | | `__code__` (GH-122713)
* gh-123142: Fix too wide source locations in tracebacks of exceptions from ↵Irit Katriel2024-08-218-22/+122
| | | | broken iterables in comprehensions (#123173)
* GH-115776: Allow any fixed sized object to have inline values (GH-123192)Mark Shannon2024-08-2113-38/+61
|
* 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
|