mirror of
https://github.com/python/cpython.git
synced 2025-08-26 03:34:43 +00:00
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
6cba6e1df2
commit
626668912f
3 changed files with 31 additions and 0 deletions
|
@ -1870,6 +1870,7 @@ class Helper:
|
|||
':': 'SLICINGS DICTIONARYLITERALS',
|
||||
'@': 'def class',
|
||||
'\\': 'STRINGS',
|
||||
':=': 'ASSIGNMENTEXPRESSIONS',
|
||||
'_': 'PRIVATENAMES',
|
||||
'__': 'PRIVATENAMES SPECIALMETHODS',
|
||||
'`': 'BACKQUOTES',
|
||||
|
@ -1963,6 +1964,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