Hi,
what about numpy?

import numpy
a = numpy.ones((10,),dtype=numpy.bool)
I = [1,3,8]
a[I]=False
print a

gives: [ True False  True False  True  True  True  True False  True]

Almar
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to