def clear(self):
try:<EOL><INDENT>for node in self.__map.itervalues():<EOL><INDENT>del node[:]<EOL><DEDENT>root = self.__root<EOL>root[:] = [root, root, None]<EOL>self.__map.clear()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>dict.clear(self)<EOL>
od.clear() -> None.  Remove all items from od.