turn list of letters into an array of integers
Demian Brecht
demianbrecht at gmail.com
Wed Oct 24 01:54:30 EDT 2012
> Of course, if you want these to be ints, then you can either change the format of your int list, or map(int, list_) if you don't have control over it.
Ugh, I'm tired. Shouldn't map it, the conversion should be done in the list comprehension to avoid a needless second list iteration.
K, I'm going to sleep now. :P
Demian Brecht
@demianbrecht
http://demianbrecht.github.com
More information about the Python-list
mailing list