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 james
Recipients james, larry, ncoghlan, yselivanov
Date 2015-04-13.17:20:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428945635.57.0.78866800296.issue23934@psf.upfronthosting.co.za>
In-reply-to
Content
Discussed with Nick Coghlan.

See attached patch to return `signature(object)` only if both `__new__` and `__init__` are shared with `object`.

Otherwise, raise TypeError indicating built-in types not supported. 

https://docs.python.org/3/library/inspect.html#inspect.signature
"Raises ValueError if no signature can be provided, and TypeError if that type of object is not supported."
History
Date User Action Args
2015-04-13 17:20:35jamessetrecipients: + james, ncoghlan, larry, yselivanov
2015-04-13 17:20:35jamessetmessageid: <1428945635.57.0.78866800296.issue23934@psf.upfronthosting.co.za>
2015-04-13 17:20:35jameslinkissue23934 messages
2015-04-13 17:20:35jamescreate