How to override the doc of an object instance.

Bruno Desthuilliers onurb at xiludom.gro
Wed Jun 21 19:04:12 CEST 2006


David Huard wrote:
(snip)
> Has this problem come up before ?
> It seems that with the new classes, this
> kind of wish will generalize, 

AFAIK, there's no (and never have been) docstrings for non-callable
attributes of a class or module. And properties are non-callable
attributes.

> or is it a bad coding habit to embed
> objects inside classes ? 

Since everything in Python is OO (classes, functions and modules
included), I fail to see how one could do otherwise...

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list