Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-130907: Treat all module-level annotations as conditional (#131550) | Jelle Zijlstra | 2025-04-28 | 1 | -1/+33 |
| | |||||
* | gh-130881: Handle conditionally defined annotations (#130935) | Jelle Zijlstra | 2025-03-26 | 1 | -7/+65 |
| | |||||
* | gh-130080: implement PEP 765 (#130087) | Irit Katriel | 2025-03-17 | 1 | -3/+3 |
| | |||||
* | GH-131238: More refactoring of core header files (GH-131351) | Mark Shannon | 2025-03-17 | 1 | -1/+2 |
| | | | | Adds new pycore_stats.h header file to help break dependencies involving the pycore_code.h header. | ||||
* | gh-131238: Add explicit includes to pycore headers (#131257) | Victor Stinner | 2025-03-17 | 1 | -2/+6 |
| | |||||
* | Postpone <stdbool.h> inclusion after Python.h (#130641) | Hugo Beauzée-Luyssen | 2025-02-28 | 1 | -2/+2 |
| | | | | | | | Remove inclusions prior to Python.h. <stdbool.h> will cause <features.h> to be included before Python.h can define some macros to enable some additional features, causing multiple types not to be defined down the line. | ||||
* | gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475) | Victor Stinner | 2025-01-31 | 1 | -2/+2 |
| | | | Replace "on verb+ing" with "while verb+ing". | ||||
* | gh-127274: Defer nested methods (#128012) | mpage | 2024-12-19 | 1 | -0/+2 |
| | | | | | | | Methods (functions defined in class scope) are likely to be cleaned up by the GC anyway. Add a new code flag, `CO_METHOD`, that is set for functions defined in a class scope. Use that when deciding to defer functions. | ||||
* | gh-120017: use 'do-while(0)' in some `{codegen,compile}.c` multi-line macros ↵ | Bénédikt Tran | 2024-11-07 | 1 | -3/+5 |
| | | | | (#120018) | ||||
* | gh-126238: Fix possible null pointer dereference of freevars in ↵ | Valery Fedorenko | 2024-11-05 | 1 | -1/+1 |
| | | | | | | | | _PyCompile_LookupArg (#126239) * Replace Py_DECREF by Py_XDECREF Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> | ||||
* | gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101) | Xuanteng Huang | 2024-10-30 | 1 | -0/+2 |
| | |||||
* | gh-121404: typo fix in compile.c: MATADATA -> METADATA (#125101) | Mikhail Efimov | 2024-10-08 | 1 | -5/+5 |
| | |||||
* | gh-124442: make `__static_attributes__` deterministic by sorting (#124492) | Kira | 2024-09-28 | 1 | -1/+11 |
| | | | | | Signed-off-by: kp2pml30 <kp2pml30@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | gh-123969: refactor _PyErr_RaiseSyntaxError and _PyErr_EmitSyntaxWarning out ↵ | Irit Katriel | 2024-09-16 | 1 | -30/+7 |
| | | | | of compiler (#123972) | ||||
* | gh-124058: remove _PyCompile_IsNestedScope, roll it into ↵ | Irit Katriel | 2024-09-16 | 1 | -8/+3 |
| | | | | _PyCompile_IsInteractive (#124061) | ||||
* | gh-124022: Fix bug where class docstring is removed in interactive mode ↵ | Irit Katriel | 2024-09-13 | 1 | -2/+2 |
| | | | | | | | (#124023) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-124013: remove _PyCompile_IsTopLevelAwait (#124014) | Irit Katriel | 2024-09-12 | 1 | -9/+0 |
| | |||||
* | gh-123881: make compiler add the .generic_base base class without ↵ | Irit Katriel | 2024-09-10 | 1 | -8/+0 |
| | | | | | | constructing AST nodes (#123883) | ||||
* | gh-121404: split compile.c into compile.c and codegen.c (#123651) | Irit Katriel | 2024-09-09 | 1 | -6642/+383 |
| | |||||
* | gh-121404: enforce that codegen doesn't access compiler, and compiler ↵ | Irit Katriel | 2024-09-02 | 1 | -85/+129 |
| | | | | doesn't use codegen macros (#123575) | ||||
* | gh-123553: Fix compile warning in `compile.c` (#123578) | sobolevn | 2024-09-01 | 1 | -0/+2 |
| | |||||
* | gh-123553: Fix compiler warning in `Python/compile.c` (#123554) | Kirill Podoprigora | 2024-09-01 | 1 | -0/+2 |
| | |||||
* | gh-121404: rearrange code in compile.c so that codegen functions come first ↵ | Irit Katriel | 2024-08-30 | 1 | -1033/+1071 |
| | | | | and compiler functions second (#123510) | ||||
* | gh-123142: fix too wide source location of GET_ITER/GET_AITER (#123420) | Irit Katriel | 2024-08-28 | 1 | -8/+7 |
| | |||||
* | gh-121404: split compiler_nameop into a codegen part and a compiler part ↵ | Irit Katriel | 2024-08-27 | 1 | -89/+101 |
| | | | | (#123398) | ||||
* | gh-121404: compiler_visit_* --> codegen_visit_* (#123382) | Irit Katriel | 2024-08-27 | 1 | -61/+49 |
| | |||||
* | gh-121404: more compiler_* -> codegen_*, class_body and comprehensions (#123262) | Irit Katriel | 2024-08-23 | 1 | -59/+82 |
| | |||||
* | gh-121404: compiler_annassign --> codegen_annassign (#123245) | Irit Katriel | 2024-08-23 | 1 | -63/+100 |
| | |||||
* | gh-121404: remove redundant c_nestlevel. more compiler abstractions. more ↵ | Irit Katriel | 2024-08-22 | 1 | -118/+111 |
| | | | | macro usage consistency (#123225) | ||||
* | gh-123142: Fix too wide source locations in tracebacks of exceptions from ↵ | Irit Katriel | 2024-08-21 | 1 | -2/+3 |
| | | | | broken iterables in comprehensions (#123173) | ||||
* | gh-121404: split fblock handling into compiler_* and codegen_* parts (#123199) | Irit Katriel | 2024-08-21 | 1 | -15/+24 |
| | |||||
* | gh-123048: Fix missing source location in pattern matching code (#123167) | Irit Katriel | 2024-08-20 | 1 | -1/+1 |
| | |||||
* | gh-121404: rename functions to use codegen_* prefix. Use macros more ↵ | Irit Katriel | 2024-08-19 | 1 | -349/+303 |
| | | | | consistently. (#123139) | ||||
* | 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-121404: rename compiler_addop* to codegen_addop*, and replace direct ↵ | Irit Katriel | 2024-08-16 | 1 | -96/+102 |
| | | | | usages by the macros (#123043) | ||||
* | gh-121404: split compiler's push/pop_inlined_comprehension_state into ↵ | Irit Katriel | 2024-08-15 | 1 | -63/+102 |
| | | | | codegen and compiler parts (#123021) | ||||
* | gh-122985: add SYMBOL_TO_SCOPE macro in symtable (#122986) | Irit Katriel | 2024-08-14 | 1 | -7/+4 |
| | |||||
* | GH-122821: Simplify compilation of while statements to ensure consistency of ↵ | Mark Shannon | 2024-08-13 | 1 | -3/+1 |
| | | | | offsets for sys.monitoring (GH-122934) | ||||
* | gh-122595: Add more error checks in the compiler (GH-122596) | Serhiy Storchaka | 2024-08-06 | 1 | -22/+56 |
| | |||||
* | gh-122445: populate only modified fields in __static_attributes__ (#122446) | Irit Katriel | 2024-08-02 | 1 | -7/+11 |
| | |||||
* | gh-119180: Add evaluate functions for type params and type aliases (#122212) | Jelle Zijlstra | 2024-07-27 | 1 | -5/+8 |
| | |||||
* | gh-122245: move checks for writes and shadowing of __debug__ to symtable ↵ | Irit Katriel | 2024-07-26 | 1 | -76/+0 |
| | | | | (#122246) | ||||
* | GH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164) | Mark Shannon | 2024-07-25 | 1 | -58/+5 |
| | |||||
* | gh-121404: extract compiler_lookup_arg out of compiler_make_closure (#122181) | Irit Katriel | 2024-07-24 | 1 | -41/+49 |
| | |||||
* | gh-121637: Syntax error for optimized-away incorrect await (#121656) | Jelle Zijlstra | 2024-07-22 | 1 | -23/+14 |
| | | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | gh-121404: move calculation of module start location from compiler_body up ↵ | Irit Katriel | 2024-07-22 | 1 | -20/+28 |
| | | | | to compiler_codegen (#122127) | ||||
* | gh-121657: Display correct error message for yield from outside of a ↵ | Gregor | 2024-07-13 | 1 | -1/+1 |
| | | | | | | function (GH-121680) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | gh-121554: remove unnecessary internal functions in compile.c (#121555) | Irit Katriel | 2024-07-10 | 1 | -48/+0 |
| | | | Co-authored-by: Erlend E. Aasland <erlend@python.org> | ||||
* | gh-121404: remove some accesses to compiler internals from codegen functions ↵ | Irit Katriel | 2024-07-10 | 1 | -101/+120 |
| | | | | (#121538) | ||||
* | gh-121547: deduplicate the code of const_cache update functions (#121548) | Irit Katriel | 2024-07-10 | 1 | -25/+22 |
| |