cpython/Parser
Jelle Zijlstra 24d8b88420
gh-103763: Implement PEP 695 (#103764)
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>
2023-05-15 20:36:23 -07:00
..
Python.asdl gh-103763: Implement PEP 695 (#103764) 2023-05-15 20:36:23 -07:00
action_helpers.c gh-103763: Implement PEP 695 (#103764) 2023-05-15 20:36:23 -07:00
asdl.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) 2021-04-02 12:53:46 +09:00
asdl_c.py gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) 2023-05-05 21:11:27 +00:00
myreadline.c gh-102255: Improve build support for Windows API partitions (GH-102256) 2023-03-09 21:09:12 +00:00
parser.c gh-103763: Implement PEP 695 (#103764) 2023-05-15 20:36:23 -07:00
peg_api.c bpo-43244: Remove parser_interface.h header file (GH-25001) 2021-03-24 01:29:09 +01:00
pegen.c gh-103656: Transfer f-string buffers to parser to avoid use-after-free (GH-103896) 2023-04-27 01:33:31 +00:00
pegen.h gh-103656: Transfer f-string buffers to parser to avoid use-after-free (GH-103896) 2023-04-27 01:33:31 +00:00
pegen_errors.c gh-103656: Transfer f-string buffers to parser to avoid use-after-free (GH-103896) 2023-04-27 01:33:31 +00:00
string_parser.c gh-102310: Change error range for invalid bytes literals (#103663) 2023-04-22 18:08:27 -06:00
string_parser.h gh-102856: Initial implementation of PEP 701 (#102855) 2023-04-19 11:18:16 -05:00
token.c gh-102856: Initial implementation of PEP 701 (#102855) 2023-04-19 11:18:16 -05:00
tokenizer.c Trim trailing whitespace and test on CI (#104275) 2023-05-08 17:03:52 +03:00
tokenizer.h gh-104016: Fixed off by 1 error in f string tokenizer (#104047) 2023-05-01 19:15:47 +00:00