[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: map/filter/reduce/lambda opinions and background unscientific
From:       Sion Arrowsmith <siona () chiark ! greenend ! org ! uk>
Date:       2005-07-07 15:50:04
Message-ID: ujk*lp1Sq () news ! chiark ! greenend ! org ! uk
[Download RAW message or body]

=?ISO-8859-2?Q?Pawe=B3?= Sakowski  <pawel@sakowski.pl> wrote:
>>>> ll=[[1,2],[3,4,5],[6]]
>>>> sum(ll,[])
>[1, 2, 3, 4, 5, 6]

That's a great argument for list.__add__ having the semantics of
extend rather than append 8-)

-- 
\S -- siona@chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomež se bera eadward ofdun hlęddre heafdes bęce bump bump bump


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic