[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

Yury Selivanov report at bugs.python.org
Sun Jan 19 23:48:26 CET 2014


Yury Selivanov added the comment:

In this case it would probably be best to just special case classes that don't have __init__ or __new__ defined to return an empty signature without parameters.

I can also make a special case for object.__init__ and object.__new__ functions, if someone would want to introspect them directly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20308>
_______________________________________


More information about the Python-bugs-list mailing list