[issue8639] Allow callable objects in inspect.getfullargspec

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: This is now fixed in #17481. -- dependencies: +inspect.getfullargspec should use __signature__ nosy: +yselivanov resolution: -> fixed status: open -> closed ___ Python tracker

[issue8639] Allow callable objects in inspect.getfullargspec

2013-04-03 Thread Mark Lawrence
Mark Lawrence added the comment: Would someone please review the patch file as it's out of my league. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-02 Thread Maxim Bublis
Changes by Maxim Bublis : Removed file: http://bugs.python.org/file22825/inspect.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Maxim Bublis
Maxim Bublis added the comment: Agree, support for __new__ or __init__ methods would add some ambiquity, so i've decided to drop __init__ support from patch. Patch has been reuploaded. -- Added file: http://bugs.python.org/file22826/inspect2.patch _

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Michael Foord
Michael Foord added the comment: Right. For a callable object (instance with __call__ method), it's unambiguous which signature you want. For a class it's ambiguous. -- ___ Python tracker _

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm -0.5. I think the current patch makes too many assumptions for the caller. For example, someone calling a class may really desire __new__'s signature, not that of __init__. Moreover, conceptually, getargspec() returns the argspec of a directly callable

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Maxim Bublis
Maxim Bublis added the comment: I've ran into the same problem with getfullargspec not supporting callables, so I've written patch with docs and tests, that adds support for any Python callable. As a result of getfullargspec's implementation change, getargspec function also supports callables

[issue8639] Allow callable objects in inspect.getfullargspec

2011-07-11 Thread Michael Foord
Michael Foord added the comment: I can produce a patch w/ tests and documentation for you to review Nick. -- ___ Python tracker ___ __

[issue8639] Allow callable objects in inspect.getfullargspec

2011-07-11 Thread Nick Coghlan
Nick Coghlan 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 wi