]> granicus.if.org Git - python/commit
Fix issue 5890: (property subclass shadows __doc__ string) by inserting
authorR. David Murray <rdmurray@bitdance.com>
Mon, 4 May 2009 22:16:24 +0000 (22:16 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 4 May 2009 22:16:24 +0000 (22:16 +0000)
commit7ba8e1cbfdd262f809038fa590c6004ac71b3ce8
tree015d5f8f5efc7b5a15b254825910a5be11ae020e
parent97377bf56685282ac6e504f64e71794a7bdd80b6
Fix issue 5890: (property subclass shadows __doc__ string) by inserting
the __doc__ into the subclass instance __dict__.  The fix refactors
property_copy to call property_init in such a way that the __doc__
logic is re-executed correctly when getter_doc is 1, thus simplifying
property_copy.
Lib/test/test_property.py
Misc/NEWS
Objects/descrobject.c