list insertion

Randy Bush randy at psg.com
Tue Aug 23 23:58:11 EDT 2005


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