• Guido van Rossum's avatar
    (Merge into trunk.) · 37d026b9
    Guido van Rossum authored
    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.
    37d026b9
typeobject.c 101 KB