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

2015-09-23 Thread Sudhier Batara
Thanks for the reply Steve, I solved it myself.I was not returning 'newest' Node in parent class. --sudhier On Mon, 21 Sep 2015 11:43 pm Steven D'Aprano wrote: > Hi Sudhier, and welcome, > > Unfortunately I'm about to step away from the computer, so I can't > really answer your question in deta

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

2015-09-21 Thread Steven D'Aprano
Hi Sudhier, and welcome, Unfortunately I'm about to step away from the computer, so I can't really answer your question in detail, but since it's been 2 or 3 days since you asked your question, and I haven't seen any replies at all, I thought I'd give a quick reply so you know we aren't ignorin

[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

Re: [Tutor] Doubly linked list

2010-09-30 Thread Steven D'Aprano
On Thu, 30 Sep 2010 11:24:06 pm T MURPHY wrote: > I was having trouble, where on the python site can i find steps on > classes Google is your friend: googling for "python tutorial" brings up lots of tutorials that will help. Here's the first one: http://docs.python.org/tutorial/ > and making a

Re: [Tutor] Doubly linked list

2010-09-30 Thread Alan Gauld
"T MURPHY" wrote I was having trouble, where on the python site can i find steps on classes and making a doubly linked list, is there a help option for linked lists. Thee are several sites that discuss list structures in Python, but mostly these are of academic interest only. Do you hav

Re: [Tutor] Doubly linked list

2010-09-30 Thread Emile van Sebille
On 9/30/2010 6:24 AM T MURPHY said... I was having trouble, where on the python site can i find steps on classes and making a doubly linked list, is there a help option for linked lists. Python itself doesn't provide a doubly linked list so I wouldn't expect to find support ifo on the python

[Tutor] Doubly linked list

2010-09-30 Thread T MURPHY
I was having trouble, where on the python site can i find steps on classes and making a doubly linked list, is there a help option for linked lists. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python