Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-118465: Add __firstlineno__ attribute to class (GH-118475) | Serhiy Storchaka | 2024-05-06 | 1 | -0/+5 |
| | | | | It is set by compiler with the line number of the first line of the class definition. | ||||
* | gh-118513: Fix sibling comprehensions with a name bound in one and global in ↵ | Carl Meyer | 2024-05-03 | 1 | -39/+42 |
| | | | | | | the other (#118526) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> | ||||
* | gh-116126: Implement PEP 696 (#116129) | Jelle Zijlstra | 2024-05-03 | 1 | -14/+75 |
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | ||||
* | gh-118216: Don't consider dotted `__future__` imports (#118267) | Crowthebird | 2024-05-02 | 1 | -1/+1 |
| | |||||
* | gh-116767: fix crash on 'async with' with many context managers (GH-118348) | Irit Katriel | 2024-05-01 | 1 | -2/+16 |
| | | | | | | | Account for `add_stopiteration_handler` pushing a block for `async with`. To allow generator functions that previously almost hit the `CO_MAXBLOCKS` limit by nesting non-async blocks, the limit is increased by 1. This increase allows one more block in non-generator functions. | ||||
* | gh-117901: Add option for compiler's codegen to save nested instruction ↵ | Irit Katriel | 2024-04-24 | 1 | -0/+18 |
| | | | | sequences for introspection (#118007) | ||||
* | gh-117680: make _PyInstructionSequence a PyObject and use it in tests (#117629) | Irit Katriel | 2024-04-17 | 1 | -164/+34 |
| | |||||
* | gh-117494: extract the Instruction Sequence data structure into a separate ↵ | Irit Katriel | 2024-04-04 | 1 | -166/+31 |
| | | | | file (#117496) | ||||
* | gh-117411: move PyFutureFeatures to pycore_symtable.h and make it private ↵ | Irit Katriel | 2024-04-02 | 1 | -4/+4 |
| | | | | (#117412) | ||||
* | gh-117288: Allocate fewer label IDs in _PyCfg_ToInstructionSequence (#117290) | Irit Katriel | 2024-03-27 | 1 | -4/+30 |
| | |||||
* | gh-115775: Compiler adds __static_attributes__ field to classes (#115913) | Irit Katriel | 2024-03-26 | 1 | -1/+53 |
| | |||||
* | gh-115756: make PyCode_GetFirstFree an unstable API (GH-115781) | Bogdan Romanyuk | 2024-03-19 | 1 | -1/+1 |
| | |||||
* | gh-111789: Use PyDict_GetItemRef() in Python/compile.c (GH-112083) | Serhiy Storchaka | 2024-02-23 | 1 | -5/+4 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-115376: fix segfault in _testinternalcapi.compiler_codegen on bad input ↵ | Irit Katriel | 2024-02-15 | 1 | -14/+28 |
| | | | | (#115379) | ||||
* | gh-115347: avoid emitting redundant NOP for the docstring with -OO (#115494) | Irit Katriel | 2024-02-15 | 1 | -18/+20 |
| | |||||
* | gh-112066: Use `PyDict_SetDefaultRef` in place of `PyDict_SetDefault`. (#112211) | Sam Gross | 2024-02-07 | 1 | -12/+17 |
| | | | | | This changes a number of internal usages of `PyDict_SetDefault` to use `PyDict_SetDefaultRef`. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-114569: Use PyMem_* APIs for non-PyObjects in compiler (#114587) | Erlend E. Aasland | 2024-01-29 | 1 | -13/+12 |
| | |||||
* | GH-112354: `END_FOR` instruction to only pop one value. (GH-114247) | Mark Shannon | 2024-01-24 | 1 | -0/+10 |
| | | | | * Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops. | ||||
* | gh-107901: synthetic jumps which are not at end of loop no longer check the ↵ | Irit Katriel | 2024-01-06 | 1 | -20/+20 |
| | | | | eval breaker (#113721) | ||||
* | GH-111485: Generate instruction and uop metadata (GH-113287) | Mark Shannon | 2023-12-20 | 1 | -30/+7 |
| | |||||
* | gh-99606: Make code generated for an empty f-string identical to that of a ↵ | Irit Katriel | 2023-11-26 | 1 | -2/+6 |
| | | | | normal empty string (#112407) | ||||
* | gh-107149: make new opcode util functions private rather than public and ↵ | Irit Katriel | 2023-11-14 | 1 | -8/+8 |
| | | | | unstable (#112042) | ||||
* | gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵ | Irit Katriel | 2023-11-03 | 1 | -2/+2 |
| | | | | frame state (#111648) | ||||
* | gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵ | Irit Katriel | 2023-11-02 | 1 | -2/+2 |
| | | | | (#111459) | ||||
* | gh-108082: Use PyErr_FormatUnraisable() (GH-111580) | Serhiy Storchaka | 2023-11-02 | 1 | -3/+2 |
| | | | | | | Replace most of calls of _PyErr_WriteUnraisableMsg() and some calls of PyErr_WriteUnraisable(NULL) with PyErr_FormatUnraisable(). Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-111354: define names for RESUME oparg values (#111365) | Irit Katriel | 2023-10-26 | 1 | -3/+3 |
| | |||||
* | gh-105658: fix excess trace events for except block ending with a ↵ | Irit Katriel | 2023-09-14 | 1 | -14/+2 |
| | | | | conditional block (#109384) | ||||
* | GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300) | Brandt Bucher | 2023-09-13 | 1 | -10/+12 |
| | |||||
* | gh-109195: fix source location for super load before LOAD_SUPER_ATTR (#109289) | Carl Meyer | 2023-09-11 | 1 | -1/+1 |
| | |||||
* | gh-106320: Remove private _PyErr_WriteUnraisableMsg() (#108863) | Victor Stinner | 2023-09-04 | 1 | -0/+1 |
| | | | | | | Move the private _PyErr_WriteUnraisableMsg() functions to the internal C API (pycore_pyerrors.h). Move write_unraisable_exc() from _testcapi to _testinternalcapi. | ||||
* | gh-108654: restore comprehension locals before handling exception (#108659) | Carl Meyer | 2023-08-30 | 1 | -14/+53 |
| | | | Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> | ||||
* | gh-105481: remove regen-opcode. Generated _PyOpcode_Caches in regen-cases. ↵ | Irit Katriel | 2023-08-23 | 1 | -0/+1 |
| | | | | (#108367) | ||||
* | gh-108308: Replace PyDict_GetItem() with PyDict_GetItemRef() (#108309) | Victor Stinner | 2023-08-23 | 1 | -7/+27 |
| | | | | | | | | | Replace PyDict_GetItem() calls with PyDict_GetItemRef() or PyDict_GetItemWithError() to handle errors. * Replace PyLong_AS_LONG() with _PyLong_AsInt() and check for errors. * Check for PyDict_Contains() error. * pycore_init_builtins() checks for _PyType_Lookup() failure. | ||||
* | gh-108113: Make it possible to optimize an AST (#108282) | Irit Katriel | 2023-08-23 | 1 | -0/+18 |
| | |||||
* | gh-105724: Add location information to `assert` errors (GH-105935) | Nikita Sobolev | 2023-08-16 | 1 | -1/+1 |
| | |||||
* | gh-106149: move CFG and basicblock definitions into flowgraph.c, use them as ↵ | Irit Katriel | 2023-08-10 | 1 | -364/+68 |
| | | | | opaque types in compile.c (#107639) | ||||
* | GH-105848: Simplify the arrangement of CALL's stack (GH-107788) | Brandt Bucher | 2023-08-09 | 1 | -10/+9 |
| | |||||
* | gh-106149: fix comment on stackdepth of generators (#107321) | Irit Katriel | 2023-07-26 | 1 | -2/+3 |
| | |||||
* | gh-106149: Simplify stack depth calculation. Replace asserts by exceptions. ↵ | Irit Katriel | 2023-07-26 | 1 | -16/+31 |
| | | | | (#107255) | ||||
* | gh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup() (#107212) | Victor Stinner | 2023-07-25 | 1 | -2/+2 |
| | | | | Rename the internal PySymtable_Lookup() function to _PySymtable_Lookup() and no longer export it. | ||||
* | gh-106320: Move private _PySet API to the internal API (#107041) | Victor Stinner | 2023-07-22 | 1 | -1/+2 |
| | | | | | | | | * Add pycore_setobject.h header file. * Move the following API to the internal C API: * _PySet_Dummy * _PySet_NextEntry() * _PySet_Update() | ||||
* | gh-106916: Add missing error check _PyCompile_CleanDoc (#106921) | Kirill Podoprigora | 2023-07-21 | 1 | -0/+6 |
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | gh-105481: Generate the opcode lists in dis from data extracted from ↵ | Irit Katriel | 2023-07-18 | 1 | -0/+18 |
| | | | | bytecodes.c (#106758) | ||||
* | gh-106843: fix memleak in _PyCompile_CleanDoc (#106846) | Inada Naoki | 2023-07-18 | 1 | -1/+4 |
| | |||||
* | gh-81283: compiler: remove indent from docstring (#106411) | Inada Naoki | 2023-07-15 | 1 | -1/+98 |
| | | | Co-authored-by: Éric <merwok@netwok.org> | ||||
* | gh-105481: expose opcode metadata via the _opcode module (#106688) | Irit Katriel | 2023-07-14 | 1 | -0/+32 |
| | |||||
* | gh-105481: move Python/opcode_metadata.h to ↵ | Irit Katriel | 2023-07-12 | 1 | -1/+1 |
| | | | | Include/internal/pycore_opcode_metadata.h (#106673) | ||||
* | gh-106320: Remove private _PyInterpreterState functions (#106325) | Victor Stinner | 2023-07-02 | 1 | -0/+1 |
| | | | | | | | | | Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API. | ||||
* | GH-106008: Make implicit boolean conversions explicit (GH-106003) | Brandt Bucher | 2023-06-29 | 1 | -5/+16 |
| | |||||
* | gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059) | hms | 2023-06-29 | 1 | -0/+2 |
| | | | | | | This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction. |