James Powell added the comment:

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."

----------
keywords: +patch
Added file: http://bugs.python.org/file38936/issue_23934.patch

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

Reply via email to