Super-Funktion funktioniert nicht in einem Maya-Python-Modul

Somehow, das funktioniert im Maya / Python-Skript-Editor einwandfrei, schlägt jedoch fehl, wenn es in meinem Modulcode enthalten ist. Hat jemand irgendwelche Ideen?

class ControlShape(object):
    def __init__(self, *args, **kwargs):
        print 'Inside ControlShape...'

class Cross(ControlShape):
    def __init__(self, *args, **kwargs):
        print 'Entering Cross...'
        super(Cross, self).__init__(*args, **kwargs)
        print 'Leaving Cross...'

x = Cross()

Dies gibt mir einen TypeError: super (type, obj): obj muss eine Instanz oder ein Subtyp vom Typ sein.

Antworten auf die Frage(8)

Ihre Antwort auf die Frage