ppperry added the comment:

This issue only happens when the type in question has a custom metaclass:

>>> class meta(type):pass
>>> class X(type,metaclass=meta):pass
>>> X(X)
[Same unhelpful TypeError]

----------
resolution: works for me -> 
status: closed -> open
title: Unhelpful error message when one calls a subclass of type -> Unhelpful 
error message when one calls a subclass of type with a custom metaclass

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27157>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to