hi all..
I want to create an array of class objects of size say mXn. What
would be the easiest way to do this?
eg.
class test:
pass
i want 5x10 array of test() instances.
Then only way i know of doing this ,is by creating
a=array(test())
resize(a,[5,10])
but this creates only references to the initial objects.Is there some
way of creating fresh objects ? Also, if the __init__() call of the
class takes some parameters, i should be able to enter values..
thanx in anticipation
ciao
|