[Python-ideas] Making sys.std* thread-local

Nathaniel Smith njs at pobox.com
Mon Mar 31 20:46:11 CEST 2014


On Mon, Mar 31, 2014 at 7:22 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> * adding an API for managing thread-local contexts (a la decimal).

Numpy might be another consumer of such an API, for similar reasons to decimal:
   http://docs.scipy.org/doc/numpy/reference/generated/numpy.errstate.html#numpy.errstate
An interesting constraint from numpy's point of view is that we want
to be able to read the TLS context very quickly (e.g., no allocs) from
C code.

-- 
Nathaniel J. Smith
Postdoctoral researcher - Informatics - University of Edinburgh
http://vorpus.org


More information about the Python-ideas mailing list