summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_keyword.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-103763: Implement PEP 695 (#103764)Jelle Zijlstra2023-05-161-1/+2
| | | | | | | | | | | | | | 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-102158: Add tests for `softkwlist` (#102159)Eclips42023-02-241-0/+18
| | | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using ↵Pablo Galindo2019-03-251-110/+9
| | | | | | pgen (GH-12456) Now that the parser generator is written in Python (Parser/pgen) we can make use of it to regenerate the Lib/keyword file that contains the language keywords instead of parsing the autogenerated grammar files. This also allows checking in the CI that the autogenerated files are up to date.
* 17830: preserve line endings of original file when updating keywords.R David Murray2013-04-251-28/+30
| | | | | This fixes the test failures on Windows from the new tests, and includes test fixes as well as the module fix.
* #9607: restore keywords.kwlist after testing it.R David Murray2013-04-201-0/+2
|
* #9607: Add tests for the keyword module.R David Murray2013-04-201-0/+134
Based on the testing ideas in a patch written by Greg Malcolm.