Author ppperry
Recipients ppperry
Date 2020-02-17.17:00:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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):

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:26ppperrysetrecipients: + ppperry
2020-02-17 17:00:26ppperrysetmessageid: <>
2020-02-17 17:00:26ppperrylinkissue39665 messages
2020-02-17 17:00:26ppperrycreate