Message362152
I was trying to create a class that didn't have any references to itself to test issue39382 and ran the following code:
class Meta(type):
def mro(cls):
return type.mro(cls)[1:]
class X(metaclass=Meta):
pass
This produced an extremely cryptic error message:
Traceback (most recent call last):
File "<pyshell#89>", line 1, in <module>
class X(metaclass=Meta):
TypeError: super(type, obj): obj must be an instance or subtype of type
While what I am trying to do may well not be supported, the error message referencing the `super` function, which I didn't use, is not helpful. |
|
Date |
User |
Action |
Args |
2020-02-17 17:00:26 | ppperry | set | recipients:
+ ppperry |
2020-02-17 17:00:26 | ppperry | set | messageid: <1581958826.66.0.0275141327571.issue39665@roundup.psfhosted.org> |
2020-02-17 17:00:26 | ppperry | link | issue39665 messages |
2020-02-17 17:00:26 | ppperry | create | |
|