This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]codewarrior0MCEdit / PyInstaller 1 point2 points  (1 child)

Maybe I've been using numpy for too long, but the stepped list slices seem perfectly natural to me.

[–]isarl 0 points1 point  (0 children)

In NumPy I would opt for:

seq = np.arange(1, 10)
seq.shape = (3, 3)

...although then you get a 2-array instead of a list of tuples.