aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/codegen.c
Commit message (Collapse)AuthorAge
* gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101)Xuanteng Huang2024-10-30
|
* GH-125837: Split `LOAD_CONST` into three. (GH-125972)Mark Shannon2024-10-29
| | | | | | | | * Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
* gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)Mikhail Efimov2024-10-22
|
* gh-125063: Emit slices as constants in the bytecode compiler (#125064)Michael Droettboom2024-10-08
| | | | | | | | | | | | | | | | | | | | | | | * Make slices marshallable * Emit slices as constants * Update Python/marshal.c Co-authored-by: Peter Bierma <zintensitydev@gmail.com> * Refactor codegen_slice into two functions so it always has the same net effect * Fix for free-threaded builds * Simplify marshal loading of slices * Only return SUCCESS/ERROR from codegen_slice --------- Co-authored-by: Mark Shannon <mark@hotpy.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-124285: Fix bug where bool() is called multiple times for the same part ↵Irit Katriel2024-09-25
| | | | of a boolean expression (#124394)
* gh-124058: remove _PyCompile_IsNestedScope, roll it into ↵Irit Katriel2024-09-16
| | | | _PyCompile_IsInteractive (#124061)
* gh-124022: Fix bug where class docstring is removed in interactive mode ↵Irit Katriel2024-09-13
| | | | | | | (#124023) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-124019: do not call codegen_annotations_in_scope if there are no ↵Irit Katriel2024-09-12
| | | | annotations (#124020)
* gh-124013: remove _PyCompile_IsTopLevelAwait (#124014)Irit Katriel2024-09-12
|
* gh-123958: apply docstring removal optimization in ast_opt instead of ↵Irit Katriel2024-09-11
| | | | codegen (#123959)
* gh-123881: make compiler add the .generic_base base class without ↵Irit Katriel2024-09-10
| | | | | | constructing AST nodes (#123883)
* gh-121404: split compile.c into compile.c and codegen.c (#123651)Irit Katriel2024-09-09