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

Ram Rachum report at bugs.python.org
Fri May 20 19:15:03 CEST 2011


New submission from Ram Rachum <cool-rr at cool-rr.com>:

When you create an `abc.abstractproperty` on a class, any subclass must override it as an actual property in order to be instantiable. But sometimes you want to override it with a data attribute instead, i.e. `self.x = 5` instead of `x = property(...)`. It would be nice if doing `self.x = 5` would satisfy `abc.abstractproperty` and allow the subclass to be instantiable.

----------
components: Library (Lib)
messages: 136388
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Allow `abc.abstractproperty` to be overridden by a data attribute
type: feature request
versions: Python 3.3, Python 3.4

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


More information about the Python-bugs-list mailing list