[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

Víctor Terrón report at bugs.python.org
Thu Oct 20 03:09:43 CEST 2011


Víctor Terrón <quintanar at gmail.com> added the comment:

FWIU, only the name of the method, getAnswer, would be a HTML link in the "self.getAnswer()" line that pydoc should generate, while strong (highlighted) text would be used for instance attributes.

I have written a patch for that, by checking for "self." matches (and differentiating between methods and instance attributes) *before* trying to match functions or class instantiations.

It seems to work, but I will test it thoroughly tomorrow.

----------
keywords: +patch
nosy: +vterron
Added file: http://bugs.python.org/file23477/issue13223.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13223>
_______________________________________


More information about the Python-bugs-list mailing list