Docstrings for attributes?

Roy Smith roy at panix.com
Sat Sep 27 21:50:38 EDT 2008


Is there any way to attach a docstring to an attribute?  I see that PEP-257 
talks about attribute docstrings, but it references PDP-258, which was 
rejected.

I suppose I could eschew plain attributes in favor of getter functions, 
because those give me a place to hang a docstring, but that feels like the 
wrong thing to do.



More information about the Python-list mailing list