Can double-linked lists be implemented in python?

Piet van Oostrum piet at
Wed Apr 2 16:59:00 CEST 2003

>>>>> sdieselil at (sdieselil) (s) wrote:

s> Hi
s> How can I implement double-linked lists and other complex tree-like
s> structures in Python?

use a class with a prev and a next attribute. Or parent, child and so on
for trees.
Piet van Oostrum <piet at>
Private email: P.van.Oostrum at

More information about the Python-list mailing list