mdickinson / bigfloat

Python wrapper for MPFR, providing high-precision floating-point arithmetic
GNU Lesser General Public License v3.0
43 stars 11 forks source link

Fix initialisation of thread-local context #91

Closed mdickinson closed 4 years ago

mdickinson commented 4 years ago

Ensure that the thread-local context is created properly for background threads, and not just for the main thread.

Fixes #78.

There's a known test failure, likely due to some other test changing the context and not restoring the original (the test added in this PR runs fine by itself, but not as part of the suite). I'll track that down and fix it in a separate PR.

mdickinson commented 4 years ago

I'll track that down and fix it in a separate PR.

Done in #92.