Can double-linked lists be implemented in python?

Piet van Oostrum piet at cs.uu.nl
Wed Apr 2 16:59:00 CEST 2003


>>>>> sdieselil at yahoo.com (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 cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl




More information about the Python-list mailing list