[New-bugs-announce] [issue41960] Add globalns and localns to the inspect.signature and inspect.Signature.from_callable

Batuhan Taskaya report at bugs.python.org
Tue Oct 6 16:39:01 EDT 2020


New submission from Batuhan Taskaya <isidentical at gmail.com>:

To resolve annotations in local namespaces (and possibly in different contexts), inspect.signature can take globalns and localns parameters.

I'm not inclined to add these into the getfullargspec, but I'd appreciate any comments about whether it is a good idea or not!

----------
components: Library (Lib)
messages: 378137
nosy: BTaskaya, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: Add globalns and localns to the inspect.signature and inspect.Signature.from_callable
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41960>
_______________________________________


More information about the New-bugs-announce mailing list