[issue46776] RecursionError when using property() inside classes
Steven D'Aprano
report at bugs.python.org
Thu Feb 17 08:18:51 EST 2022
Steven D'Aprano <steve+python at pearwood.info> added the comment:
Maybe you expected to do this:
class C:
def __init__(self):
self._value = 999
@property
def bar(self):
return self._value
obj = C()
obj.bar # returns 999
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46776>
_______________________________________
More information about the Python-bugs-list
mailing list