This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Paul Pinterits
Recipients Paul Pinterits, cryvate, docs@python
Date 2017-10-09.16:55:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507568122.35.0.213398074469.issue31735@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-10-09 16:55:22Paul Pinteritssetrecipients: + Paul Pinterits, docs@python, cryvate
2017-10-09 16:55:22Paul Pinteritssetmessageid: <1507568122.35.0.213398074469.issue31735@psf.upfronthosting.co.za>
2017-10-09 16:55:22Paul Pinteritslinkissue31735 messages
2017-10-09 16:55:22Paul Pinteritscreate