restore dict() instead of dict literal
This commit is contained in:
parent
80a6ecf84d
commit
2ffbfc23f0
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue