On 2009-06-06 14:48, pdlem...@earthlink.net wrote:
All attempts have failed.
import WConio
import array
screen = array.array('H',[0]*75,[0]*24)
ERR array takes at most 2 arguments
screen = array.array('H',[0]*75[0]*24)
TypeErr int object is unsubscriptable
screen = array.array('H',[0]*75)('H',[0]*24)
ERR object is not callable
screen - array.array('H',[0]*75*24)
Goes through but results are, of course, unacceptable
On-line docs and Programming in Python 3 are no help.
Should I give up on arrays and use lists, or go to NumPy ? Thanks
Go to numpy, probably.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list