#!/usr/local/bin/python2 class C(object): @property def n(self): return self._n c = C() print hasattr(c, 'n') c._n = 1 print hasattr(c, 'n')