8000 bpo-40304: Correct type(name, bases, dict) doc by verhovsky · Pull Request #19553 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-40304: Correct type(name, bases, dict) doc #19553

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

Merged
merged 9 commits into from
Jan 22, 2021
Prev Previous commit
Next Next commit
restore dict() instead of dict literal
  • Loading branch information
verhovsky authored Oct 14, 2020
commit 2ffbfc23f0af5c95088f66284afac0d4c5a866fb
2 changes: 1 addition & 1 deletion Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ are always available. They are listed here in alphabetical order.
>>> class X:
... a = 1
...
>>> X = type('X', (), {'a': 1})
>>> X = type('X', (), dict(a=1))

See also :ref:`bltin-type-objects`.

Expand Down
0