Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: list comprehension question

Reply
Thread Tools

Re: list comprehension question

 
 
Dwight Hutto
Guest
Posts: n/a
 
      10-17-2012
On Wed, Oct 17, 2012 at 12:43 AM, Kevin Anthony
<> wrote:
> Is it not true that list comprehension is much faster the the for loops?
>
> If it is not the correct way of doing this, i appoligize.
> Like i said, I'm learing list comprehension.
>

I thought it was matrix multiplication mixed with list comprehension.

Check this out real quick from the docs for list comprehension, but if
it's a mixture of matrix multi, and list comp, then reply back.

http://docs.python.org/tutorial/data...comprehensions


--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List comprehension in if clause of another list comprehension Vedran Furac( Python 4 12-19-2008 01:35 PM
Appending a list's elements to another list using a list comprehension Debajit Adhikary Python 17 10-18-2007 06:45 PM
List comprehension returning subclassed list type? Shane Geiger Python 4 03-25-2007 09:34 AM
[Newby question] List comprehension Eelco Hoekema Python 7 08-06-2004 04:20 PM
List Comprehension question Mark Elston Python 1 12-11-2003 03:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57