]> granicus.if.org Git - python/commit
type_new(): only defer to the winning metatype if it's different from
authorGuido van Rossum <guido@python.org>
Fri, 17 Aug 2001 11:18:38 +0000 (11:18 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Aug 2001 11:18:38 +0000 (11:18 +0000)
commit8d32c8b59f9b5f4315f42a48b73a52adea3e10a2
tree08128b39b33e961359cf962ae4ef0b5c9becc459
parent4b046c252e637a482e162f7057294c95933614f2
type_new(): only defer to the winning metatype if it's different from
the metatype passed in as an argument.  This prevents infinite
recursion when a metatype written in Python calls type.__new__() as a
"super" call.

Also tweaked some comments.
Objects/typeobject.c