Message303986
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. |
|
Date |
User |
Action |
Args |
2017-10-09 16:55:22 | Paul Pinterits | set | recipients:
+ Paul Pinterits, docs@python, cryvate |
2017-10-09 16:55:22 | Paul Pinterits | set | messageid: <1507568122.35.0.213398074469.issue31735@psf.upfronthosting.co.za> |
2017-10-09 16:55:22 | Paul Pinterits | link | issue31735 messages |
2017-10-09 16:55:22 | Paul Pinterits | create | |
|