<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Feb 7, 2018 1:54 PM, "Neil Girdhar" <<a href="mailto:mistersheik@gmail.com">mistersheik@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Decimal could just pull its Context object from a context variable rather than having to pass it in to all functions.  This would be similar to how numpy works.</div></blockquote></div><br></div></div><div class="gmail_extra" dir="auto"><div dir="auto" style="">Decimal has always used a thread local context the same way numpy does, and in 3.7 it's switching to use a PEP 567 context:</div><div dir="auto" style=""><br></div><div dir="auto" style=""><div><a href="https://bugs.python.org/issue32630" style="">https://bugs.python.org/<wbr>issue32630</a><br></div></div><div dir="auto" style=""><br></div><div dir="auto" style="">-n</div></div></div>