-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assignment expression symbol (walrus) not in built-in help() #81263
Comments
Do the following at a Python prompt:
Oh no ! Our favorite |
Looks like that list could do with some attention:
|
@= is also missing. Looks like we need to go through the grammar and reconcile what's there with the symbols help. |
Seems this was added in db7b6b9 (2009) and wasn't updated from then. |
The augmented assignment symbol, like that for plain assignment, is not, properly speaking, an operator. But it definitely is a symbol that needs to be documented.
':=' should be on https://docs.python.org/3.8/genindex-Symbols.html just ':(colon)'. 'expression' should be listed under 'assignment on I think 'assignment' should be listed under 'expression' on I could not find anything in the expressions chapter. |
We might get more help with this issue if the process of updating the help() output were better documented. I recently looked into what it would take to add "FSTRINGS" to the "topics" list, and it's quite complicated -- I only persevered after stepping through pydoc.help() using pdb. I wrote up a few tips in bpo-41045. |
* Add assignment expression (:=) to `help` * Update index for Assignment Expressions to include pair of `assignment; expression`
Fixed via #124641 (finally 🎉) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
help
#124641help
(GH-124641) #124713The text was updated successfully, but these errors were encountered: