[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2014-02-24 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed in 19674. Closing this one. -- nosy: +yselivanov resolution: - out of date status: open - closed superseder: - Add introspection information for builtins ___ Python tracker rep...@bugs.python.org

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: * renamed render method of inspect.Parameter and inspect.Signature to _render to avoid changing the public API * updated patch for current tip (I got a merge conflict when pulling in the tip due to a patch for Lib/test/test_pydoc.py) -- Added

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: This may be related to: http://bugs.python.org/issue17424 Perhaps there is a common fix that can address this for both? -- nosy: +jafo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17053

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: See my comment in issue 17424: the code in that issue doesn't work with my patch because __signature__ is defined on the class instead of the method where help is called on. -- ___ Python tracker

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch appears to work correctly and includes a test for pydoc (text output). There could be more testing (HTML output, annotations, positional-only arguments). With this patch I can get usable documentation for Cocoa classes with a patched

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-02-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch is a very rough prototype which seems to work (but wasn't tested beyond running pydoc on a number of function(-like) objects. With the patch the documentation for a callable defined in C but with a __signature__ property shows argument

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-01-27 Thread Ronald Oussoren
New submission from Ronald Oussoren: pydoc currently uses inspect.getfullargspec to determine the signature of a callable when rendering its documentation. It should use inspect.signature instead because that function can work with callables that aren't python functions or methods. Changing