Re: [Tutor] Doubly linked list getting "AttributeError: 'NoneType' object has no attribute 'element'"

2015-09-23 Thread Sudhier Batara
ment, so it is possible > that others have answered your question and I haven't noticed. If so, my > apologies for wasting everyone's time.) > > Regards, > > > Steve > > On Sat, Sep 19, 2015 at 07:52:07PM +0530, Sudhier Batara wrote: > > Hi, > > >

[Tutor] Doubly linked list getting "AttributeError: 'NoneType' object has no attribute 'element'"

2015-09-21 Thread Sudhier Batara
Hi, I have the below code which is a doubly linked list , which returns the Position of the node rather than the node itself.The code is quite self explanatory.In the below code i call following methods , p = L.add_last(8) print p.element() the above methods works fine adds the element into the