I have this code;
class NumberDescriptor(object): def __get__(self, instance, owner): name = (hasattr(self, \"name\") and self.name) if not n
The getattr() call is calling your __get__.
getattr()
__get__
One way to work around this is to explicitly call through the superclass, object:
object
object.__getattribute__(instance, name)
Or, clearer:
instance.__dict__[name]