Doublelist

A more explicit check here would be "self.list_ptr is not None".  Here it doesn't cause a problem, but relying on the boolean interpretations of objects can cause bugs in other applications.