Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-119933: Improve ``SyntaxError`` message for invalid type parameters ↵ | Bénédikt Tran | 2024-06-17 | 1 | -26/+54 |
| | | | | | expressions (#119976) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-120029: remove unused macros in ``symtable.c`` (#120222) | Bénédikt Tran | 2024-06-12 | 1 | -1/+0 |
| | | | | Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-120385: Fix reference leak in symtable (#120386) | Kirill Podoprigora | 2024-06-12 | 1 | -1/+3 |
| | | | Decref 'new_ste' if symtable_visit_annotations() fails. | ||||
* | gh-119180: PEP 649 compiler changes (#119361) | Jelle Zijlstra | 2024-06-11 | 1 | -53/+145 |
| | |||||
* | gh-119666: fix multiple class-scope comprehensions referencing __class__ ↵ | Carl Meyer | 2024-06-10 | 1 | -13/+10 |
| | | | | (#120295) | ||||
* | gh-119981: Use do while(0) in some symtable.c multi-line macros (#119982) | Bénédikt Tran | 2024-06-03 | 1 | -45/+52 |
| | |||||
* | gh-119311: Fix name mangling with PEP 695 generic classes (#119464) | Jelle Zijlstra | 2024-05-28 | 1 | -7/+42 |
| | | | | Fixes #119311. Fixes #119395. | ||||
* | gh-116126: Implement PEP 696 (#116129) | Jelle Zijlstra | 2024-05-03 | 1 | -15/+44 |
| | | | | | 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-109118: Make comprehensions work within annotation scopes, but without ↵ | Jelle Zijlstra | 2024-04-28 | 1 | -14/+4 |
| | | | | | inlining (#118160) Co-authored-by: Carl Meyer <carl@oddbird.net> | ||||
* | gh-109118: Allow lambdas in annotation scopes in classes (#118019) | Jelle Zijlstra | 2024-04-22 | 1 | -11/+0 |
| | |||||
* | gh-117411: move PyFutureFeatures to pycore_symtable.h and make it private ↵ | Irit Katriel | 2024-04-02 | 1 | -2/+2 |
| | | | | (#117412) | ||||
* | gh-96497: Mangle name before symtable lookup in ↵ | wookie184 | 2024-02-17 | 1 | -4/+10 |
| | | | | 'symtable_extend_namedexpr_scope' (GH-96561) | ||||
* | gh-114828: Fix __class__ in class-scope inlined comprehensions (#115139) | Carl Meyer | 2024-02-07 | 1 | -0/+19 |
| | |||||
* | GH-113655: Lower the C recursion limit on various platforms (GH-113944) | Mark Shannon | 2024-01-16 | 1 | -7/+2 |
| | |||||
* | gh-113842: Add missing error check for PyIter_Next() in Python/symtable.c ↵ | Yan Yanchii | 2024-01-09 | 1 | -0/+6 |
| | | | | (GH-113843) | ||||
* | gh-111789: Use PyDict_GetItemRef() in Python/symtable.c (gh-112084) | Serhiy Storchaka | 2023-11-27 | 1 | -8/+4 |
| | |||||
* | gh-111123: symtable should visit exception handlers before the else block ↵ | Irit Katriel | 2023-10-21 | 1 | -2/+2 |
| | | | | (#111142) | ||||
* | gh-109390: add dump_symtable utility under #if 0 (#109391) | Carl Meyer | 2023-09-20 | 1 | -1/+110 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-109219: propagate free vars through type param scopes (#109377) | Carl Meyer | 2023-09-14 | 1 | -3/+2 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-109118: Disallow nested scopes within PEP 695 scopes within classes (#109196) | Jelle Zijlstra | 2023-09-12 | 1 | -0/+23 |
| | | | | | Fixes #109118. Fixes #109194. Co-authored-by: Carl Meyer <carl@oddbird.net> | ||||
* | gh-109207: Fix SystemError when printing symtable entry object. (GH-109225) | 云line | 2023-09-10 | 1 | -3/+2 |
| | |||||
* | Check the result of PySet_Contains() for error in Python/symtable.c (GH-109146) | Serhiy Storchaka | 2023-09-08 | 1 | -15/+57 |
| | |||||
* | GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) | Victor Stinner | 2023-09-08 | 1 | -2/+2 |
| | | | | | | | 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-108765: Cleanup #include in Python/*.c files (#108977) | Victor Stinner | 2023-09-06 | 1 | -1/+1 |
| | | | Mention one symbol imported by each #include. | ||||
* | GH-107263: Increase C stack limit for most functions, except ↵ | Mark Shannon | 2023-08-04 | 1 | -9/+2 |
| | | | | | | `_PyEval_EvalFrameDefault()` (GH-107535) * Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2. | ||||
* | gh-106869: Use new PyMemberDef constant names (#106871) | Victor Stinner | 2023-07-25 | 1 | -9/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove '#include "structmember.h"'. * If needed, add <stddef.h> to get offsetof() function. * Update Parser/asdl_c.py to regenerate Python/Python-ast.c. * Replace: * T_SHORT => Py_T_SHORT * T_INT => Py_T_INT * T_LONG => Py_T_LONG * T_FLOAT => Py_T_FLOAT * T_DOUBLE => Py_T_DOUBLE * T_STRING => Py_T_STRING * T_OBJECT => _Py_T_OBJECT * T_CHAR => Py_T_CHAR * T_BYTE => Py_T_BYTE * T_UBYTE => Py_T_UBYTE * T_USHORT => Py_T_USHORT * T_UINT => Py_T_UINT * T_ULONG => Py_T_ULONG * T_STRING_INPLACE => Py_T_STRING_INPLACE * T_BOOL => Py_T_BOOL * T_OBJECT_EX => Py_T_OBJECT_EX * T_LONGLONG => Py_T_LONGLONG * T_ULONGLONG => Py_T_ULONGLONG * T_PYSSIZET => Py_T_PYSSIZET * T_NONE => _Py_T_NONE * READONLY => Py_READONLY * PY_AUDIT_READ => Py_AUDIT_READ * READ_RESTRICTED => Py_AUDIT_READ * PY_WRITE_RESTRICTED => _Py_WRITE_RESTRICTED * RESTRICTED => (READ_RESTRICTED | _Py_WRITE_RESTRICTED) | ||||
* | gh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup() (#107212) | Victor Stinner | 2023-07-25 | 1 | -1/+1 |
| | | | | Rename the internal PySymtable_Lookup() function to _PySymtable_Lookup() and no longer export it. | ||||
* | gh-104656: Rename typeparams AST node to type_params (#104657) | Jelle Zijlstra | 2023-05-22 | 1 | -43/+43 |
| | |||||
* | gh-104640: Disallow walrus in comprehension within type scopes (#104641) | Jelle Zijlstra | 2023-05-19 | 1 | -4/+31 |
| | |||||
* | gh-104602: ensure all cellvars are known up front (#104603) | Carl Meyer | 2023-05-19 | 1 | -19/+20 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-104374: Remove access to class scopes for inlined comprehensions (#104528) | Jelle Zijlstra | 2023-05-18 | 1 | -2/+3 |
| | | | Co-authored-by: Carl Meyer <carl@oddbird.net> | ||||
* | gh-104572: Improve error messages for invalid constructs in PEP 695 contexts ↵ | Jelle Zijlstra | 2023-05-17 | 1 | -4/+4 |
| | | | | (#104573) | ||||
* | gh-103763: Implement PEP 695 (#103764) | Jelle Zijlstra | 2023-05-16 | 1 | -26/+329 |
| | | | | | | | | | | | | | | This implements PEP 695, Type Parameter Syntax. It adds support for: - Generic functions (def func[T](): ...) - Generic classes (class X[T](): ...) - Type aliases (type X = ...) - New scoping when the new syntax is used within a class body - Compiler and interpreter changes to support the new syntax and scoping rules Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Eric Traut <eric@traut.com> Co-authored-by: Larry Hastings <larry@hastings.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-104404: fix crasher with nested comprehensions plus lambdas (#104442) | Carl Meyer | 2023-05-13 | 1 | -7/+14 |
| | |||||
* | gh-104357: fix inlined comprehensions that close over iteration var (#104368) | Carl Meyer | 2023-05-11 | 1 | -6/+13 |
| | |||||
* | gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441) | Carl Meyer | 2023-05-09 | 1 | -27/+109 |
| | | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-102371: move _Py_Mangle from compile.c to symtable.c (#102372) | Irit Katriel | 2023-03-02 | 1 | -1/+66 |
| | |||||
* | gh-87447: Fix walrus comprehension rebind checking (#100581) | Nikita Sobolev | 2023-01-08 | 1 | -1/+2 |
| | | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | ||||
* | gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579) | Nikita Sobolev | 2022-12-28 | 1 | -1/+1 |
| | |||||
* | gh-99300: Replace Py_INCREF() with Py_NewRef() (#99530) | Victor Stinner | 2022-11-16 | 1 | -3/+3 |
| | | | | Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef() and Py_XNewRef(). | ||||
* | gh-99300: Use Py_NewRef() in Python/ directory (#99302) | Victor Stinner | 2022-11-10 | 1 | -6/+3 |
| | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. | ||||
* | gh-87092: do not allocate PyFutureFeatures dynamically (GH-98913) | Irit Katriel | 2022-11-02 | 1 | -5/+4 |
| | |||||
* | GH-91079: Decouple C stack overflow checks from Python recursion checks. ↵ | Mark Shannon | 2022-10-05 | 1 | -6/+3 |
| | | | | (GH-96510) | ||||
* | bpo-46765: Replace Locally Cached Strings with Statically Initialized ↵ | Eric Snow | 2022-02-23 | 1 | -39/+11 |
| | | | | | Objects (gh-31366) https://bugs.python.org/issue46765 | ||||
* | bpo-46417: Clear symtable identifiers at exit (GH-30809) | Victor Stinner | 2022-01-22 | 1 | -2/+15 |
| | | | | | | Add _PySymtable_Fini() function, called by finalize_interp_clear(). Update test_cmd_line.test_showrefcount() to tolerate negative reference count. | ||||
* | bpo-45292: [PEP-654] add except* (GH-29581) | Irit Katriel | 2021-12-14 | 1 | -0/+6 |
| | |||||
* | bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) | Pablo Galindo Salgado | 2021-12-11 | 1 | -60/+83 |
| | |||||
* | bpo-45753: Make recursion checks more efficient. (GH-29524) | Mark Shannon | 2021-11-16 | 1 | -2/+3 |
| | | | | * Uses recursion remaining, instead of recursion depth to speed up check against recursion limit. | ||||
* | bpo-33346: Allow async comprehensions inside implicit async comprehensions ↵ | Serhiy Storchaka | 2021-07-13 | 1 | -1/+8 |
| | | | | | (GH-6766) Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | bpo-44313: generate LOAD_ATTR/CALL_FUNCTION for top-level imported objects ↵ | Batuhan Taskaya | 2021-06-30 | 1 | -1/+1 |
| | | | | (GH-26677) |