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 yselivanov
Recipients brett.cannon, larry, ncoghlan, yselivanov
Date 2014-01-19.23:32:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390174327.31.0.677247455002.issue20308@psf.upfronthosting.co.za>
In-reply-to
Content
Please take a look at the attached patch (signature_plain_cls_01.patch)

Now, the patch addresses two kind of classes:

class C: pass
and 
class C(type): pass

For metaclasses, signature will return a signature with three positional-only parameters - (name, bases, dct). [let's discuss this]

The patch doesn't address 'object' or 'type' objects directly, though, so 'signature(object)' and 'signature(type)' are still a ValueError.
History
Date User Action Args
2014-01-19 23:32:07yselivanovsetrecipients: + yselivanov, brett.cannon, ncoghlan, larry
2014-01-19 23:32:07yselivanovsetmessageid: <1390174327.31.0.677247455002.issue20308@psf.upfronthosting.co.za>
2014-01-19 23:32:07yselivanovlinkissue20308 messages
2014-01-19 23:32:07yselivanovcreate