[issue20684] inspect.getfullargspec (etc) incorrectly follow __wrapped__ chains

Nick Coghlan report at bugs.python.org
Wed Feb 19 13:40:21 CET 2014


New submission from Nick Coghlan:

In a comment on issue 17482, Mike Bayer pointed out a backwards incompatibility resulting from changing inspect.getfullargspec (etc) to rely on inspect.signature: they now follow __wrapped__ chains, where previously they ignored them.

This means that instead of reporting the exact signature of the *wrapper*, they now report the signature of the wrapped function instead.

Since switching these functions from ignoring __wrapped__ to following it is an unintended backwards incompatible change, I'll tweak the code to bypass the unravelling of wrapper chains in the getfullargspec case.

----------
components: Library (Lib)
keywords: 3.4regression
messages: 211609
nosy: larry, ncoghlan, yselivanov
priority: release blocker
severity: normal
stage: test needed
status: open
title: inspect.getfullargspec (etc) incorrectly follow __wrapped__ chains
type: behavior
versions: Python 3.4

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


More information about the Python-bugs-list mailing list