]> granicus.if.org Git - python/commit
The recent changes to super(), in particular supercheck(), broke when
authorGuido van Rossum <guido@python.org>
Tue, 18 Feb 2003 19:22:22 +0000 (19:22 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 18 Feb 2003 19:22:22 +0000 (19:22 +0000)
commit8e80a72be402c926250471d7d8d84414629c683f
treefe5884264509b8e78ff17755cc1a2cbf31d22838
parent6b29c0147b964e6afa6a09bb8d694bafc30cf7ad
The recent changes to super(), in particular supercheck(), broke when
using super() for an instance in a metaclass situation.  Because the
class was a metaclass, the instance was a class, and hence the
PyType_Check() branch was taken.  But this branch didn't apply.  Make
it so that if this branch doesn't apply, the other branch is still
tried.  All tests pass.
Objects/typeobject.c