[New-bugs-announce] [issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

George Sakkis report at bugs.python.org
Fri May 1 00:13:12 CEST 2009


New submission from George Sakkis <george.sakkis at gmail.com>:

Is the following behavior expected ?

class MyProp(property):
    pass

class Foo(object):
    @property
    def bar(self):
        '''Get a bar.'''

    @MyProp
    def baz(self):
        '''Get a baz.'''

    
>>> print Foo.bar.__doc__ 
Get a bar.
>>> print Foo.baz.__doc__
None

----------
messages: 86859
nosy: gsakkis
severity: normal
status: open
title: Subclassing property doesn't preserve the auto __doc__ behavior
type: behavior

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


More information about the New-bugs-announce mailing list