]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
If a type has a repr function but no print function, printing it now
authorGuido van Rossum <guido@python.org>
Thu, 3 Sep 1992 20:32:55 +0000 (20:32 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 3 Sep 1992 20:32:55 +0000 (20:32 +0000)
commit2e8f6140ff8dfc5d5d81825ac7ec8826f750fede
treec6c95cd5c60b3f437238979ce8205881b1c2b7a2
parent99bec95482db5a395f450c972e5d947af42a01fd
If a type has a repr function but no print function, printing it now
calls the repr function.  When the refcount is bad, don't print
the object at all (chances of crashes).
Changes to checking and printing of references: the consistency
check is somewhat faster; don't print strings referenced once
(most occur in function's name lists).
Objects/object.c