Docstrings for variables seems a new interesting idea to me, but I
don't know how much useful it can be. Do you mean something like this?

>>> rcar_speed = 25
>>> print rcar_speed
25
>>> print rcar_speed.__doc__
int(x[, base]) -> integer
...
>>> rcar_speed.__ndoc__ = "Speed of the red car, km/h"
...

Can you show me some examples of its possible usefulness?

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to