Skip to content

Dictionary and set documentation mixup #123621

@AttilaLiptak

Description

@AttilaLiptak

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

Metadata

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