How to override the doc of an object instance.

David Huard david.huard at gmail.com
Wed Jun 21 09:58:25 EDT 2006


On Wed, 21 Jun 2006 15:39:02 +0200, Maric Michaud wrote:

> This is w.__class__.x.__doc__.

Thanks, 

So in order to implement what I want, I should rather consider an
ipython hack to print w.__class__.x.__doc__ when it exists, instead of
w.x.__doc_ ? Does this makes sense or it will ruin the standard behaviour?

David




More information about the Python-list mailing list