Declaring an array of a specific size?

Michael Schuerig schuerig at acm.org
Sun Mar 19 15:33:07 EST 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

-- 
Michael Schuerig
mailto:schuerig at acm.org
http://www.schuerig.de/michael/



More information about the Python-list mailing list