Skip to content

gh-81263: Add assignment expressions to help #124641

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

Conversation

emilyemorehouse
Copy link
Member

@emilyemorehouse emilyemorehouse commented Sep 26, 2024

This PR adds information on assignment expressions (:=) to pydoc, which can be accessed either through in the interactive help command in the REPL, or via the help function (e.g. help(":=")). I opted to use the same information that's present in the existing docs.

I also included updating the index settings for Assignment Expressions to include them in the index under assignment -> expression and expression -> assignment. The other list of issues in this comment are already handled.

Interactive Help Example

Screen.Recording.2024-09-26.at.3.51.27.PM.mov

Index Changes

Screenshot 2024-09-26 at 3 40 52 PM
Screenshot 2024-09-26 at 3 40 42 PM


📚 Documentation preview 📚: https://cpython-previews--124641.org.readthedocs.build/

@emilyemorehouse emilyemorehouse marked this pull request as ready for review September 26, 2024 22:55
@emilyemorehouse emilyemorehouse merged commit 6266689 into python:main Sep 27, 2024
37 checks passed
emilyemorehouse added a commit to emilyemorehouse/cpython that referenced this pull request Sep 27, 2024
* Add assignment expression (:=) to `help`

* Update index for Assignment Expressions to include pair of `assignment; expression`
@bedevere-app
Copy link

bedevere-app bot commented Sep 27, 2024

GH-124713 is a backport of this pull request to the 3.13 branch.

1 similar comment
@bedevere-app
Copy link

bedevere-app bot commented Sep 27, 2024

GH-124713 is a backport of this pull request to the 3.13 branch.

Yhg1s pushed a commit that referenced this pull request Sep 27, 2024
…24713)

gh-81263: Add assignment expressions to `help` (#124641)

* Add assignment expression (:=) to `help`

* Update index for Assignment Expressions to include pair of `assignment; expression`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant