The REALLY bad thing about Python lists ..

François Pinard pinard at iro.umontreal.ca
Sun May 14 15:37:32 EDT 2000


scarblac-spamtrap at pino.selwerd.nl (Remco Gerlich) writes:

> So I would find it interesting to know why you use prepending so much :)

In LISP and C culture, as well as many others, prepending is more efficient
with lists, given how these things are called implemented.  Python lists are
implemented differently, so reformulation is needed for speed in Python.
I would say that prepending is a programming habit developing from other
language implementations of lists.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard






More information about the Python-list mailing list