mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00
[3.13] gh-81263: Add assignment expressions to help
(GH-124641) (#124713)
gh-81263: Add assignment expressions to `help` (#124641) * Add assignment expression (:=) to `help` * Update index for Assignment Expressions to include pair of `assignment; expression`
This commit is contained in:
parent
5c5f02753a
commit
0a125d9029
3 changed files with 31 additions and 0 deletions
|
@ -1861,6 +1861,7 @@ class Helper:
|
|||
':': 'SLICINGS DICTIONARYLITERALS',
|
||||
'@': 'def class',
|
||||
'\\': 'STRINGS',
|
||||
':=': 'ASSIGNMENTEXPRESSIONS',
|
||||
'_': 'PRIVATENAMES',
|
||||
'__': 'PRIVATENAMES SPECIALMETHODS',
|
||||
'`': 'BACKQUOTES',
|
||||
|
@ -1954,6 +1955,7 @@ class Helper:
|
|||
'ASSERTION': 'assert',
|
||||
'ASSIGNMENT': ('assignment', 'AUGMENTEDASSIGNMENT'),
|
||||
'AUGMENTEDASSIGNMENT': ('augassign', 'NUMBERMETHODS'),
|
||||
'ASSIGNMENTEXPRESSIONS': ('assignment-expressions', ''),
|
||||
'DELETION': 'del',
|
||||
'RETURNING': 'return',
|
||||
'IMPORTING': 'import',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue