In article <mailman.7691.1232554737.3487.python-l...@python.org>,
 Philip Semanchuk <phi...@semanchuk.com> wrote:

> 
> Other answers have been good; to them I'll add the comment that list  
> comprehensions are for *constructing* lists, not manipulating the  
> elements thereof.
> 
> HTH
> Philip


Well this seems to work just fine.  What am I missing:

   A=[1,2,3]
   print A
   A=[2*a for a in A]
   print A

-- 
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to