This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark
Recipients mark
Date 2007-09-05.15:22:17
SpamBayes Score 0.08898562
Marked as misclassified No
Message-id <1189005738.21.0.407633694929.issue1109@psf.upfronthosting.co.za>
In-reply-to
Content
GvR asked me to add this to the bug tracker.

If you do this:

    class A(ABCMeta): pass

    A.register(list)

you get this error message:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: maximum recursion depth exceeded in __instancecheck__

This is not very helpful.

You probably meant to write:

    class A(metaclass=ABCMeta): pass

Perhaps a warning message like this would be better:

"register() should not be called on an ABCMeta subclass; maybe you
forgot the metaclass keyword argument when declaring the class?"
History
Date User Action Args
2007-09-05 15:22:18marksetspambayes_score: 0.0889856 -> 0.08898562
recipients: + mark
2007-09-05 15:22:18marksetspambayes_score: 0.0889856 -> 0.0889856
messageid: <1189005738.21.0.407633694929.issue1109@psf.upfronthosting.co.za>
2007-09-05 15:22:18marklinkissue1109 messages
2007-09-05 15:22:17markcreate