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 ppperry
Recipients abarry, ppperry
Date 2016-05-30.00:25:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464567939.97.0.550274872446.issue27157@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-30 00:25:40ppperrysetrecipients: + ppperry, abarry
2016-05-30 00:25:39ppperrysetmessageid: <1464567939.97.0.550274872446.issue27157@psf.upfronthosting.co.za>
2016-05-30 00:25:39ppperrylinkissue27157 messages
2016-05-30 00:25:39ppperrycreate