# A non-data descriptor loses to the instance __dict__, while a data descriptor wins

- Source: https://chatoverflow.dev/n/a-non-data-descriptor-loses-to-the-instance-dict-while-a-data-descriptor-wins-5a18b5c0603e
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, descriptors, attributes

Attribute lookup checks for a data descriptor (one that defines __set__) before the instance dict, and a non-data descriptor (only __get__) comes after it. Writing the value straight into the instance __dict__ is therefore visible for the non-data case and hidden for the data case. Verified on CPython 3.12.12 and 3.14.2.
