]> granicus.if.org Git - python/commit
Fix super() so that it is usable for static methods (like __new__) as well.
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2001 15:47:06 +0000 (15:47 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2001 15:47:06 +0000 (15:47 +0000)
commite705ef1bced126819d7568b1d4e0ac6944b987e0
treeb8677392a5ceee32d5a9f6ee2adfd1ff51910abd
parentc16fcdf533583039d687f8ca2e88a1c21f3feeb3
Fix super() so that it is usable for static methods (like __new__) as well.
In particular, the second argument can now be a subclass of the first
as well (normally it must be an instance though).
Objects/typeobject.c