Skip to content

gh-81263: Add assignment expressions to help#124641

Merged
emilyemorehouse merged 2 commits into
python:mainfrom
emilyemorehouse:gh-81263-help-assignment-expressions
Sep 27, 2024
Merged

gh-81263: Add assignment expressions to help#124641
emilyemorehouse merged 2 commits into
python:mainfrom
emilyemorehouse:gh-81263-help-assignment-expressions

Conversation

@emilyemorehouse
Copy link
Copy Markdown
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
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
Copy Markdown

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
Copy Markdown

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