Skip to content

Dictionary and set documentation mixup #123621

Closed
@AttilaLiptak

Description

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:

print(type({}))
<class 'dict'>
print(type({...}))
<class 'set'>

I suspect the documentation mixes up the empty set and empty dictionary creation.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions