]> granicus.if.org Git - python/commit
(Merge into trunk.)
authorGuido van Rossum <guido@python.org>
Fri, 14 Dec 2001 04:19:56 +0000 (04:19 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Dec 2001 04:19:56 +0000 (04:19 +0000)
commite54616cb6fdd9f9fb0d86ddd2cd5c4ffb51771b8
treec8bab15509c8f6436c7fb03af0d9cbfd88902bef
parent7ec1c85d7a87e1aff699421d741be8dfca2adee9
(Merge into trunk.)

Fix for SF bug #492345.  (I could've sworn I checked this in, but
apparently I didn't!)

This code:

    class Classic:
        pass

    class New(Classic):
        __metaclass__ = type

attempts to create a new-style class with only classic bases -- but it
doesn't work right.  Attempts to fix it so it works caused problems
elsewhere, so I'm now raising a TypeError in this case.
Lib/test/test_descr.py
Objects/typeobject.c