Paul Pinterits <[email protected]> added the comment:
If we take this class:
class Obj:
@property
def d(self):
print('called')
And we access Obj.d:
_ = Obj.d
According to the docs, the following should happen:
# obj.d looks up d in the dictionary of obj
d = Obj.__dict__['d']
# If d defines the method __get__(),
if hasattr(d, '__get__'):
# then d.__get__(obj) is invoked
d.__get__(Obj)
We know this doesn't happen because nothing is printed to stdout.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31735>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com