Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-127146: Emscripten: Skip segfaults in test suite (#127151) | Hood Chatham | 2024-12-05 | 1 | -0/+2 |
| | | | | Added skips for tests known to cause problems when running on Emscripten. These mostly relate to the limited stack depth on Emscripten. | ||||
* | gh-126072: Set docstring attribute for module and class (#126231) | Xuanteng Huang | 2024-11-08 | 1 | -4/+12 |
| | |||||
* | gh-126298: Don't deduplicate slice constants based on equality (#126398) | Michael Droettboom | 2024-11-07 | 1 | -19/+59 |
| | | | | | | | | | | | | | | | * gh-126298: Don't deduplicated slice constants based on equality * NULL check for PySlice_New * Fix refcounting * Fix refcounting some more * Fix refcounting * Make tests more complete * Fix tests | ||||
* | gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101) | Xuanteng Huang | 2024-10-30 | 1 | -4/+4 |
| | |||||
* | GH-125837: Split `LOAD_CONST` into three. (GH-125972) | Mark Shannon | 2024-10-29 | 1 | -20/+18 |
| | | | | | | | | * Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode | ||||
* | gh-125063: Emit slices as constants in the bytecode compiler (#125064) | Michael Droettboom | 2024-10-08 | 1 | -2/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | * 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-124871: fix 'visited' tracking in compiler's reachability analysis (#124952) | Irit Katriel | 2024-10-04 | 1 | -0/+13 |
| | |||||
* | gh-115142: Skip some test cases in ``Lib/test/test_compile`` if ↵ | Kirill Podoprigora | 2024-09-30 | 1 | -1/+6 |
| | | | | | | ``_testinternalcapi`` is not available (#124474) * Skip some test cases if "_testinternalcapi" is not available and if the test suite is running on another implementation than CPython. | ||||
* | gh-124442: make `__static_attributes__` deterministic by sorting (#124492) | Kira | 2024-09-28 | 1 | -0/+17 |
| | | | | | 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-124285: Fix bug where bool() is called multiple times for the same part ↵ | Irit Katriel | 2024-09-25 | 1 | -0/+39 |
| | | | | of a boolean expression (#124394) | ||||
* | gh-124022: Fix bug where class docstring is removed in interactive mode ↵ | Irit Katriel | 2024-09-13 | 1 | -6/+29 |
| | | | | | | | (#124023) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-123958: apply docstring removal optimization in ast_opt instead of ↵ | Irit Katriel | 2024-09-11 | 1 | -0/+6 |
| | | | | codegen (#123959) | ||||
* | gh-123942: add missing test for docstring-handling code in ast_opt.c (#123943) | Irit Katriel | 2024-09-11 | 1 | -0/+26 |
| | |||||
* | gh-123142: Fix too wide source locations in tracebacks of exceptions from ↵ | Irit Katriel | 2024-08-21 | 1 | -2/+2 |
| | | | | broken iterables in comprehensions (#123173) | ||||
* | gh-122445: populate only modified fields in __static_attributes__ (#122446) | Irit Katriel | 2024-08-02 | 1 | -1/+4 |
| | |||||
* | gh-98442: fix locations of with statement's cleanup instructions (#120763) | Irit Katriel | 2024-06-20 | 1 | -0/+33 |
| | | | gh-98442: fix location of with statement's cleanup instructions | ||||
* | gh-120722: Set position on RETURN_VALUE in lambda (#120724) | Jelle Zijlstra | 2024-06-19 | 1 | -1/+28 |
| | |||||
* | gh-120367: fix bug where compiler detects redundant jump after pseudo op ↵ | Irit Katriel | 2024-06-18 | 1 | -1/+26 |
| | | | | replacement (#120714) | ||||
* | gh-120417: Add #noqa: F401 to tests (#120627) | Victor Stinner | 2024-06-18 | 1 | -2/+2 |
| | | | | Ignore linter "imported but unused" warnings in tests when the linter doesn't understand how the import is used. | ||||
* | gh-120367: fix removal of redundant NOPs and jumps after reordering hot-cold ↵ | Irit Katriel | 2024-06-17 | 1 | -0/+27 |
| | | | | blocks (#120425) | ||||
* | gh-120225: fix crash in compiler on empty block at end of exception handler ↵ | Irit Katriel | 2024-06-07 | 1 | -0/+10 |
| | | | | (#120235) | ||||
* | gh-119180: Add LOAD_COMMON_CONSTANT opcode (#119321) | Jelle Zijlstra | 2024-05-22 | 1 | -1/+1 |
| | | | | | | | | | | The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | ||||
* | gh-118465: Add __firstlineno__ attribute to class (GH-118475) | Serhiy Storchaka | 2024-05-06 | 1 | -1/+4 |
| | | | | It is set by compiler with the line number of the first line of the class definition. | ||||
* | gh-117680: make _PyInstructionSequence a PyObject and use it in tests (#117629) | Irit Katriel | 2024-04-17 | 1 | -0/+46 |
| | |||||
* | gh-116303: Skip tests if C recursion limit is unavailable (GH-117368) | Erlend E. Aasland | 2024-04-08 | 1 | -5/+6 |
| | | | | | The test suite fetches the C recursion limit from the _testcapi extension module. Test extension modules can be disabled using the --disable-test-modules configure option. | ||||
* | gh-115775: Compiler adds __static_attributes__ field to classes (#115913) | Irit Katriel | 2024-03-26 | 1 | -0/+58 |
| | |||||
* | gh-116100: Add `test` arg to `ast.If` and `op` arg to `ast.BoolOp` calls ↵ | Kirill Podoprigora | 2024-02-29 | 1 | -2/+2 |
| | | | | (#116101) | ||||
* | Fix test_compile with -O mode (GH-115346) | Serhiy Storchaka | 2024-02-19 | 1 | -2/+5 |
| | |||||
* | gh-115347: avoid emitting redundant NOP for the docstring with -OO (#115494) | Irit Katriel | 2024-02-15 | 1 | -0/+26 |
| | |||||
* | gh-107901: make compiler inline basic blocks with no line number and no ↵ | Irit Katriel | 2024-02-02 | 1 | -12/+50 |
| | | | | fallthrough (#114750) | ||||
* | gh-114083: apply optimization of LOAD_CONST instructions to the whole CFG ↵ | Irit Katriel | 2024-01-22 | 1 | -3/+11 |
| | | | | before optimize_basic_block. (#114408) | ||||
* | GH-113655: Lower the C recursion limit on various platforms (GH-113944) | Mark Shannon | 2024-01-16 | 1 | -5/+3 |
| | |||||
* | gh-107901: duplicate blocks with no lineno that have an eval break and ↵ | Irit Katriel | 2024-01-12 | 1 | -0/+15 |
| | | | | multiple predecessors (#113950) | ||||
* | gh-113932: assert ``SyntaxWarning`` in test_compile.TestSpecifics.test_… ↵ | Kirill Podoprigora | 2024-01-11 | 1 | -1/+2 |
| | | | | (#113933) | ||||
* | gh-113603: Compiler no longer tries to maintain the no-empty-block invariant ↵ | Irit Katriel | 2024-01-03 | 1 | -0/+13 |
| | | | | (#113636) | ||||
* | gh-113054: Compiler no longer replaces a redundant jump with no line number ↵ | Irit Katriel | 2023-12-19 | 1 | -0/+4 |
| | | | | by a NOP (#113139) | ||||
* | gh-112962: in dis module, put cache information in the Instruction instead ↵ | Irit Katriel | 2023-12-13 | 1 | -2/+3 |
| | | | | of creating fake Instructions to represent it (#113016) | ||||
* | gh-111123: symtable should visit exception handlers before the else block ↵ | Irit Katriel | 2023-10-21 | 1 | -0/+17 |
| | | | | (#111142) | ||||
* | gh-109889: fix compiler's redundant NOP detection to look past NOPs with no ↵ | Irit Katriel | 2023-09-28 | 1 | -0/+5 |
| | | | | lineno when looking for the next instruction's lineno (#109987) | ||||
* | gh-109823: Adjust labels in compiler when removing an empty basic block ↵ | Irit Katriel | 2023-09-25 | 1 | -0/+5 |
| | | | | which is a jump target (#109839) | ||||
* | gh-109719: Fix missing jump target labels when compiler reorders cold/warm ↵ | Irit Katriel | 2023-09-22 | 1 | -0/+11 |
| | | | | blocks (#109734) | ||||
* | gh-109627: duplicated smalll exit blocks need to be assigned jump target ↵ | Irit Katriel | 2023-09-20 | 1 | -0/+9 |
| | | | | labels (#109630) | ||||
* | gh-109341: Fix crash on compiling invalid AST including TypeAlias (#109349) | Jelle Zijlstra | 2023-09-13 | 1 | -0/+20 |
| | |||||
* | gh-109351: Fix crash when compiling AST with invalid NamedExpr (#109352) | Jelle Zijlstra | 2023-09-13 | 1 | -0/+27 |
| | |||||
* | gh-109195: fix source location for super load before LOAD_SUPER_ATTR (#109289) | Carl Meyer | 2023-09-11 | 1 | -0/+7 |
| | |||||
* | GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) | Victor Stinner | 2023-09-08 | 1 | -6/+6 |
| | | | | | | | Symbols of the C API should be prefixed by "Py_" to avoid conflict with existing names in 3rd party C extensions on "#include <Python.h>". test.pythoninfo now logs Py_C_RECURSION_LIMIT constant and other _testcapi and _testinternalcapi constants. | ||||
* | gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) | Serhiy Storchaka | 2023-09-02 | 1 | -0/+1 |
| | | | | Only mark tests which spend significant system or user time, by itself or in subprocesses. | ||||
* | gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop ↵ | Irit Katriel | 2023-08-21 | 1 | -0/+14 |
| | | | | (#108242) | ||||
* | gh-105724: Add location information to `assert` errors (GH-105935) | Nikita Sobolev | 2023-08-16 | 1 | -5/+5 |
| | |||||
* | GH-107263: Increase C stack limit for most functions, except ↵ | Mark Shannon | 2023-08-04 | 1 | -13/+8 |
| | | | | | | `_PyEval_EvalFrameDefault()` (GH-107535) * Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2. |