mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03:00
Now inspect.signature() supports references to the module globals in parameter defaults on methods in extension modules. Previously it was only supported in functions. The workaround was to specify the fully qualified name, including the module name.
3 lines
151 B
ReStructuredText
3 lines
151 B
ReStructuredText
Fix :func:`inspect.signature()` to correctly handle parameter defaults
|
|
on methods in extension modules that use names defined in the module
|
|
namespace.
|