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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20684>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to