commit | 8d32c8b59f9b5f4315f42a48b73a52adea3e10a2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 17 11:18:38 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 17 11:18:38 2001 +0000 |
tree | 08128b39b33e961359cf962ae4ef0b5c9becc459 | |
parent | 4b046c252e637a482e162f7057294c95933614f2 [diff] |
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.