def isRoot(self):
        """ Return whether I am a root component or not """

        # If I don't have a parent, I am root
        return not self._father
 Return whether I am a root component or not 
recipes/Python/498249_Composite_designpattern_using/recipe-498249.py