def deletenode(self, node):
if self._last == node:<EOL><INDENT>self._last = node.previous<EOL><DEDENT>if self._first == node:<EOL><INDENT>self._first = node.next<EOL><DEDENT>node.pop()<EOL>del self._index[node.value]<EOL>self._size -= <NUM_LIT:1><EOL>
>>> l = DLL()
>>> l.push(1)
>>> l
[1]
>>> l.size()
1
>>> l.deletenode(l._first)
>>> l
[]
>>> l.size()
0
>>> l._index
{}
>>> l._first