Martin Mokrejs added the comment:

For the sake of internet archives, the following could be included in the FAQ 
you referred to:

http://www.scipy.org/Cookbook/BuildingArrays

>>> import numpy as np
>>> a=np.array(5*[False],bool)
>>> a
array([False, False, False, False, False], dtype=bool)
>>> a[4]=1
>>> a
array([False, False, False, False,  True], dtype=bool)
>>>

But thanks for the link, it helped me at that time.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to