]> granicus.if.org Git - python/commit
When comparing objects, always check that tp_compare is not NULL
authorGuido van Rossum <guido@python.org>
Tue, 21 Jul 1998 21:56:41 +0000 (21:56 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 21 Jul 1998 21:56:41 +0000 (21:56 +0000)
commitb4db1944c4392cb1510f01dcd2b10da6949b83fc
treefe7b9eb74151e6affa0cb6f7c897717c9b7fadb7
parent052969a6022a06414b11ab6fe294d5af01d20a59
When comparing objects, always check that tp_compare is not NULL
before calling it.  This check was there when the objects were of the
same type *before* coercion, but not if they initially differed but
became the same *after* coercion.
Objects/object.c