ppperry added the comment:

Further testing reveals that this issue has nothing to do with metaclasses:

>>>class X(type):pass
>>>X()(X)

raises the same TypeError.
Even if the possibly dubious feature of being able to call instances of 
subclasses of type with one argument is rejected, the error message should 
definitely be improved. It is ridiculously unhelpful.

----------
title: Unhelpful error message when one calls a subclass of type with a custom 
metaclass -> Unhelpful error message when one calls an instance of a subclass 
of type

_______________________________________
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