]> granicus.if.org Git - python/commit
Three's a charm: yet another fix for SF bug 551412. Thinking again
authorGuido van Rossum <guido@python.org>
Mon, 10 Jun 2002 14:30:43 +0000 (14:30 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Jun 2002 14:30:43 +0000 (14:30 +0000)
commit2309498595cb5a69547ad87a66b4574971684ec3
tree334b40a27e2613ef4eb20b4b4c8ce5d9ac5d9344
parentf70a0a8471fff12a4be06a2a1d643b32a7d40502
Three's a charm: yet another fix for SF bug 551412.  Thinking again
about the test case, slot_nb_power gets called on behalf of its second
argument, but with a non-None modulus it wouldn't check this, and
believes it is called on behalf of its first argument.  Fix this
properly, and get rid of the code in _PyType_Lookup() that tries to
call _PyType_Ready().  But do leave a check for a NULL tp_mro there,
because this can still legitimately occur.

I'll fix this in 2.2.x too.
Objects/typeobject.c