descriptor precedence rules

If an instance’s dictionary has an entry with the same name as a data descriptor, the data descriptor takes precedence. If an instance’s dictionary has an entry with the same name as a non-data descriptor, the dictionary entry takes precedence.

Source: How-To Guide for Descriptors

added 2012-06-01T23:02:12Z by anders

Tags: python descriptor metaprogramming