Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31463
| References | <CA+C4C6f=24oD4seHY_-h1F0GMvBTWNYbzTABXOdtKkAZtE9hdQ@mail.gmail.com> <507E145E.9060008@davea.name> <CA+C4C6cjha4bMZ9gyx5fTp0c_nfFQxRGu31dGNMjgHQBu73=ig@mail.gmail.com> |
|---|---|
| Date | 2012-10-17 01:09 -0400 |
| Subject | Re: list comprehension question |
| From | Dwight Hutto <dwightdhutto@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2318.1350450551.27098.python-list@python.org> (permalink) |
On Wed, Oct 17, 2012 at 12:43 AM, Kevin Anthony <kevin.s.anthony@gmail.com> 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/datastructures.html#list-comprehensions -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: list comprehension question Dwight Hutto <dwightdhutto@gmail.com> - 2012-10-17 01:09 -0400
csiph-web