def pull(self, *, index=None):
item = self.__list.pop(index)<EOL>name = getattr(item, '<STR_LIT:name>', None)<EOL>if name is not None:<EOL><INDENT>del self.__dict[name]<EOL><DEDENT>return item<EOL>
Pull item from the chain.