list insertion

Jordan Rastrick jrastrick at student.usyd.edu.au
Wed Aug 24 00:54:40 EDT 2005


What you've posted looks right, more or less.

To get any sort of meaningful feedback, you really need to post a full
version of your code, including the print statements, what's being
printed, and why you think this shows the code is not working. What
you've shown is far too little for anybody else to work with.

Regards,
Jordan


Randy Bush:
> i am trying to insert into a singly linked list
>
>     hold = self.next
>     self.next = DaClass(value)
>     self.next.next = hold
>
> but i suspect (from print statement insertions) that the result
> is not as i expect.  as the concept and code should be very
> common, as i am too old for pride, i thought i would ask.
> 
> mahalo,
> randy




More information about the Python-list mailing list