Menu

#92 Show variable name instead of value in method default params

open
5
2008-09-22
2008-09-22
No

For example, if I have

class Flags():
OK = 0
NO = 1
MAYBE = 2

class Example();
def test(self, status = Flags.MAYBE)
pass

Epydoc shows Example.test() in the html files like:
test(self, status=2)

I don't know if this is explicitly designed behaviour (or there is a workaround for it), but I would like to see that the variable name is shown instead of the value of the variable, I.E:

test(self, status=Flags.MAYBE)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.