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