Thanks to visit codestin.com Credit goes to github.com
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 6c940d6 commit aa30669Copy full SHA for aa30669
1 file changed
Doc/library/reprlib.rst
@@ -118,10 +118,10 @@ The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
118
the handling of types already supported. This example shows how special support
119
for file objects could be added::
120
121
- import repr
+ import reprlib
122
import sys
123
124
- class MyRepr(repr.Repr):
+ class MyRepr(reprlib.Repr):
125
def repr_file(self, obj, level):
126
if obj.name in ['<stdin>', '<stdout>', '<stderr>']:
127
return obj.name
0 commit comments