def __init__(self, old_stack=None): LocalStack.__init__(self) if not old_stack is None: self._local = old_stack._local self.__ident_func__ = self.get_parent_id