-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Dictionary and set documentation mixup #123621
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
Labels
docs
Documentation in the Doc dir
Comments
Would you like to send a PR? I agree that using a valid set literal |
sobolevn
pushed a commit
that referenced
this issue
Sep 3, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 3, 2024
…honGH-123648) (cherry picked from commit cfbc841) Co-authored-by: Lipták Attila (Flash) <113017309+AttilaLiptak@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 3, 2024
…honGH-123648) (cherry picked from commit cfbc841) Co-authored-by: Lipták Attila (Flash) <113017309+AttilaLiptak@users.noreply.github.com>
This was referenced Sep 3, 2024
Thanks, I will send one more PR with some extra changes in a separate issue! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Documentation
https://docs.python.org/3/reference/datamodel.html
3.2.7.1. Dictionaries
The documentation says the following:
"Dictionaries are mutable; they can be created by the {...} notation."
However any Python interpreter shows the following result:
I suspect the documentation mixes up the empty set and empty dictionary creation.
Linked PRs
datamodel.rst
with properdict
notation (GH-123648) #123653datamodel.rst
with properdict
notation (GH-123648) #123654The text was updated successfully, but these errors were encountered: