Ich möchte mir meinen eigenen Listentyp erstellen.
Leider klappt das nichtganz so , wie ich mir das vorstelle:
Code: Alles auswählen
>>> class Vektoren(list):
... pass
...
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
TypeError: Error when calling the metaclass bases
list() takes at most 1 argument (3 given)
>>> class DefaultDict(dict):
... pass
...
>>>