alf wrote:

> Would it be .append()? Does it reallocate te list with each apend?
> 
> l=[]
> for i in xrange(n):
>       l.append(i)

No, it doesn't.  It expands the capacity of the list if necessary.

-- 
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   It isn't important to come out on top, what matters is to be the one
   who comes out alive. -- Bertolt Brecht, 1898-1956
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to