This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mmokrejs
Recipients amaury.forgeotdarc, mmokrejs
Date 2013-01-03.23:11:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357254665.86.0.306352453843.issue15416@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-01-03 23:11:06mmokrejssetrecipients: + mmokrejs, amaury.forgeotdarc
2013-01-03 23:11:05mmokrejssetmessageid: <1357254665.86.0.306352453843.issue15416@psf.upfronthosting.co.za>
2013-01-03 23:11:05mmokrejslinkissue15416 messages
2013-01-03 23:11:05mmokrejscreate