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 
version of PyObjC that includes an __signature__ property on ObjC method 
objects.

As mentioned before I'm not sure about the 'render' method added to 
inspect.Signature and inspect.Parameter. These methods were needed to generate 
output that's compatible with the current pydoc output, in particular to emit 
better HTML output.

----------
keywords: +patch
stage: test needed -> patch review
Added file: http://bugs.python.org/file29415/issue17053.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17053>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to