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 davidhalter
Recipients davidhalter
Date 2017-08-11.16:22:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502468531.27.0.204472955702.issue31184@psf.upfronthosting.co.za>
In-reply-to
Content
inspect.getattr_static is currently not identifying data descriptors the right way.

Data descriptors are defined by having a __get__ attribute and at least one of the __set__ and __delete__ attributes.

Implementation detail: Both __delete__ and __get__ set the same slot called tp_descr_set in CPython.

I have attached a patch that fixes the issue IMO.
History
Date User Action Args
2017-08-11 16:22:11davidhaltersetrecipients: + davidhalter
2017-08-11 16:22:11davidhaltersetmessageid: <1502468531.27.0.204472955702.issue31184@psf.upfronthosting.co.za>
2017-08-11 16:22:11davidhalterlinkissue31184 messages
2017-08-11 16:22:11davidhaltercreate