[Numpy-discussion] numpy.mean still broken for largefloat32arrays

Robert Kern robert.kern at gmail.com
Sat Jul 26 16:06:21 EDT 2014


On Sat, Jul 26, 2014 at 8:04 PM, Sturla Molden <sturla.molden at gmail.com> wrote:
> Benjamin Root <ben.root at ou.edu> wrote:
>
>> My other concern would be with multi-threaded code (which is where a global
>> state would be bad).
>
> It would presumably require a global threading.RLock for protecting the
> global state.

We would use thread-local storage like we currently do with the
np.errstate() context manager. Each thread will have its own "global"
state.

-- 
Robert Kern



More information about the NumPy-Discussion mailing list