Steven D'Aprano <steve+pyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to