]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
The object returned by tp_new() may not have a tp_init.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 16 Jul 2002 19:42:21 +0000 (19:42 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 16 Jul 2002 19:42:21 +0000 (19:42 +0000)
commitea21ac976751a9a6c2204cc35be1fef97815435b
treed0f18ddb1057f0d29172b2f9b9151a908e3ec6f7
parent003eb0328723554e994d39f9bf01bf75277c6d90
The object returned by tp_new() may not have a tp_init.

If the object is an ExtensionClass, for example, the slot is not even
defined.  So we must check that the type has the slot (implied by
HAVE_CLASS) before calling tp_init().
Objects/typeobject.c