[Python-Dev] (back to): Linked lists -- (was: deque alternative)

Raymond Hettinger raymond.hettinger at verizon.net
Wed Dec 28 04:24:06 CET 2005


[Martin Blais]
> Now, it's not all about storage space.  What about front-insertion?
> Everytime I have to type L.insert(0, bli), somewhere that I know runs
> "often" I cringe.  If I had lists I would be able to express my
> thoughts more clearly in the computer program.  Right now, I cringe,
> and then I just shrug.

Doesn't collections.deque() meet your front-insertion needs?


Raymond



More information about the Python-Dev mailing list