[issue8639] Allow callable objects in inspect.getfullargspec
Nick Coghlan
report at bugs.python.org
Mon Jul 11 14:00:15 CEST 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
This API has changed around a bit in 3.x, so it is actually inspect.getfullargspec that needs to change (getargspec will inherit the new behaviour though, since it uses getfullargspec internally)
With appropriate docs and tests updates, I don't see a problem with adding the feature, though. Docs should note and tests should ensure that this only goes one level deep - if __call__ isn't a real function either, inspect shouldn't try to follow the descriptor chain down the rabbit hole. Anything else runs the risk of infinite recursion in the face of things like "inspect.getargspec(list)".
----------
title: Allow callable objects in inspect.getargspec -> Allow callable objects in inspect.getfullargspec
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8639>
_______________________________________
More information about the Python-bugs-list
mailing list