A bug?

Joshua Landau joshua at landau.ws
Tue Oct 28 02:29:28 CET 2014


On 28 October 2014 00:36, Denis McMahon <denismfmcmahon at gmail.com> wrote:
>
> d = [[list(range(1,13))[i*3+j] for j in range(3)] for i in range(4)]

A quick note. Ranges (even 2.7's xrange) are all indexable. The cast
to a list isn't needed.



More information about the Python-list mailing list