Commit 43f005d0 authored by Stefan Behnel's avatar Stefan Behnel

fix comment

parent 2e298b7e
...@@ -2521,7 +2521,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -2521,7 +2521,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
"if (PyType_Ready(&%s) < 0) %s" % ( "if (PyType_Ready(&%s) < 0) %s" % (
typeobj_cname, typeobj_cname,
code.error_goto(entry.pos))) code.error_goto(entry.pos)))
# Don't inherit tp_dict from builtin types, restoring the # Don't inherit tp_print from builtin types, restoring the
# behavior of using tp_repr or tp_str instead. # behavior of using tp_repr or tp_str instead.
code.putln("%s.tp_print = 0;" % typeobj_cname) code.putln("%s.tp_print = 0;" % typeobj_cname)
# Fix special method docstrings. This is a bit of a hack, but # Fix special method docstrings. This is a bit of a hack, but
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment