Python Linked list?

Michael P. Soulier msoulier at digitaltorque.ca
Mon Oct 31 21:46:44 CET 2005


On 10/31/05, Simon Roses Femerling <simonroses at granisla.com> wrote:
> I'm looking for a linked list class or lib ? Any suggestions ?

I'm not sure anyone would bother making one for Python. Why do you
feel that you need one?

Are dictionaries and lists not enough? Can you not simply make one via
references in a class?

class MyNode(object):
   next = None

Should do it, no?

Mike

--
Michael P. Soulier <msoulier at digitaltorque.ca>



More information about the Python-list mailing list