[issue12128] Allow `abc.abstractproperty` to be overridden by a data attribute

Daniel Stutzbach report at bugs.python.org
Fri May 20 21:02:46 CEST 2011


Daniel Stutzbach <stutzbach at google.com> added the comment:

> Daniel, the behavior you describe is already present in Python 3.2.

Awesome. :)

Do you have a compelling use-case for making "self.x = 5" satisfy an abstractproperty requirement?  One of the problems with that approach is that the instance does not satisfy the requirements until the line in __init__ is called that sets self.x.

----------

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


More information about the Python-bugs-list mailing list