You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<module '_pydecimal' from '/home/vscuser/miniconda3/envs/jbpy/lib/python3.15/_pydecimal.py'>Traceback (most recent call last): File "/home/vscuser/git/glweb/software/third-party/jbpy/tmp_repro.py", line 7, in <module> with impl.localcontext(traps=[impl.Overflow]) as ctx: ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vscuser/miniconda3/envs/jbpy/lib/python3.15/_pydecimal.py", line 423, in localcontext setattr(ctx_manager.new_context, key, value) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vscuser/miniconda3/envs/jbpy/lib/python3.15/_pydecimal.py", line 4048, in __setattr__ return self._set_signal_dict(name, value) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/vscuser/miniconda3/envs/jbpy/lib/python3.15/_pydecimal.py", line 4021, in _set_signal_dict raise TypeError("%s must be a signal dict" % d)TypeError: [<class 'decimal.Overflow'>] must be a signal dict
I think it's a valid issue. Strictly speaking, I don't see where this behavior is documented for the _decimal.localcontext(). But on another hand, we have similar examples for Context:
Activity
skirpichev commentedon Nov 23, 2026
I think it's a valid issue. Strictly speaking, I don't see where this behavior is documented for the
_decimal.localcontext(). But on another hand, we have similar examples for Context: