]> granicus.if.org Git - python/commit
Fix for SF bug 551412. When _PyType_Lookup() is called on a type
authorGuido van Rossum <guido@python.org>
Fri, 24 May 2002 21:40:08 +0000 (21:40 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 24 May 2002 21:40:08 +0000 (21:40 +0000)
commit9fc8a29663268a3ed5b8db15c4b7b7786f80e13e
tree7f22a30e0645c62f2dd4e2d3b4e0ce9d82cb2eb0
parenta2a206b917d7634fa43be1d4062b03f1f4404300
Fix for SF bug 551412.  When _PyType_Lookup() is called on a type
whose tp_mro hasn't been initialized, it would dump core.  Fix this by
checking for NULL and calling PyType_Ready().  Will fix this in 2.2.1
too.
Lib/test/test_descr.py
Objects/typeobject.c