[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

Moriyoshi Koizumi report at bugs.python.org
Thu Nov 19 06:28:31 CET 2009


Moriyoshi Koizumi <mozo+python at mozo.jp> added the comment:

@r.david.murray

> If MyProp is such a subclass, would
> print Fro.baz.__doc__ print "Get a baz" in 2.6.2 but raise an error in
> 2.6.3/4, or would it print None?

Just let it return None as they were for now.  I completely agree
there's a better fix like delegating the access to __doc__ to the base
class (property class in this specific case).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5890>
_______________________________________


More information about the Python-bugs-list mailing list