We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d6480 commit 5d1554aCopy full SHA for 5d1554a
Doc/library/json.rst
@@ -89,7 +89,7 @@ Extending :class:`JSONEncoder`::
89
... # Let the base class default method raise the TypeError
90
... return json.JSONEncoder.default(self, obj)
91
...
92
- >>> dumps(2 + 1j, cls=ComplexEncoder)
+ >>> json.dumps(2 + 1j, cls=ComplexEncoder)
93
'[2.0, 1.0]'
94
>>> ComplexEncoder().encode(2 + 1j)
95
0 commit comments