Scope of a class..help???

Chris Angelico rosuav at gmail.com
Thu May 23 06:27:27 EDT 2013


On Thu, May 23, 2013 at 8:23 PM,  <lokeshkoppaka at gmail.com> wrote:
>  Thanks Chris Angelico,
> i am new to python can you suggest me how to remove the error and solve it.
> so,how can i create an instance for "Node" in that function??,is, it not possible to create an instance in such a way?

The problem isn't the instantiation; the problem's further down, where
you reuse the name "Node" to iterate over your list. Rename that to
something else and you should be right.

ChrisA



More information about the Python-list mailing list