[issue17373] Add inspect.Signature.from_callable()

Eric Snow report at bugs.python.org
Thu Mar 7 08:51:49 CET 2013


New submission from Eric Snow:

While working on a subclass of inspect.Signature, I realized that inspect.signature is treated as the constructor.  So subclassing isn't so simple.  At first I considered adding an extra parameter to inspect.signature allowing different Signature classes.  Not much later it became clear that all that code should simply be in classmethod.  I've called it Signature.from_callable.  Patch attached.

----------
components: Library (Lib)
files: signature-from-callable.diff
keywords: patch
messages: 183636
nosy: eric.snow, larry
priority: normal
severity: normal
stage: patch review
status: open
title: Add inspect.Signature.from_callable()
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file29333/signature-from-callable.diff

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


More information about the Python-bugs-list mailing list