Declaring an array of a specific size?

Michael Schuerig schuerig at
Sun Mar 19 21:33:07 CET 2000

I need an integer array with 24 elements and I'm at a loss finding out
how to do this elegantly.

    array.array("i", [0, ...., 0])

just can't be it. But what's the right way?


Michael Schuerig
mailto:schuerig at

More information about the Python-list mailing list