list insertion
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Wed Aug 24 03:12:00 EDT 2005
Randy Bush enlightened us with:
> hold = self.next
> self.next = DaClass(value)
> self.next.next = hold
shouldn't that last line be this?
self.next.prev = hold
> but i suspect (from print statement insertions) that the result is
> not as i expect.
What did you expect, and what did you ovserve?
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list