[Tutor] Linked Lists

Sukrit K Mehra holysmoke at amaltaas.biz
Wed Aug 27 06:55:35 EDT 2003


On Tue, Aug 26, 2003 at 03:48:22PM -0700, Scott Widney wrote:
 
> If all you need simple singly-linked-list functionality for a project you're

I don't need it, I want it. I am trying to learn.


> >>> dir(list)
> ['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',
> '__delslice__', '__doc__', '__eq__', '__ge__', '__getattribute__',
> '__getitem__', '__getslice__', '__gt__', '__hash__', '__iadd__', '__imul__',
> '__init__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__',
> '__reduce__', '__repr__', '__rmul__', '__setattr__', '__setitem__',
> '__setslice__', '__str__', 'append', 'count', 'extend', 'index', 'insert',
> 'pop', 'remove', 'reverse', 'sort']

Umm I know. Maybe I should look at the implementation. There is this
linked list project at sf, that I forgot the url of, but it's too obtuse
for me.

> Now if it were a doubly-linked list, I think that would be another
> matter....

Ok, how would you do a doubly-linked list?

Thanks,
sukrit



More information about the Tutor mailing list