Message184227
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. |
|
Date |
User |
Action |
Args |
2013-03-15 12:59:23 | ronaldoussoren | set | recipients:
+ ronaldoussoren |
2013-03-15 12:59:22 | ronaldoussoren | set | messageid: <1363352362.97.0.936529199717.issue17053@psf.upfronthosting.co.za> |
2013-03-15 12:59:22 | ronaldoussoren | link | issue17053 messages |
2013-03-15 12:59:22 | ronaldoussoren | create | |
|