]> granicus.if.org Git - python/commit
When overriding __str__ or __repr__, set the tp_print slot to NULL.
authorGuido van Rossum <guido@python.org>
Mon, 29 Oct 2001 14:33:44 +0000 (14:33 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Oct 2001 14:33:44 +0000 (14:33 +0000)
commitafe7a94089dab0fea0694647e91988df29d23c1c
treecc20cda7ef29fefd8c7525cd286bc19f81c1df1c
parent7c0178618875b09241d389d1e415a1bb6142c13d
When overriding __str__ or __repr__, set the tp_print slot to NULL.
Objects/typeobject.c