Bug report
# import decimalimport_pydecimalasdecimal_unbounded_dec_context=decimal.getcontext().copy()
_unbounded_dec_context.prec=decimal.MAX_PREC_unbounded_dec_context.Emax=decimal.MAX_EMAX_unbounded_dec_context.Emin=decimal.MIN_EMIN_unbounded_dec_context.traps[decimal.Inexact] =1# sanity checkdecimal.setcontext(_unbounded_dec_context)
x=decimal.Decimal('1')
y=x//1The C implementation evaluates the last line instantly, but the Python implementation hangs for a long time (infinitely?). The modulus operation has the same behavior.
cc @tim-one
Linked PRs
Bug report
The C implementation evaluates the last line instantly, but the Python implementation hangs for a long time (infinitely?). The modulus operation has the same behavior.
cc @tim-one
Linked PRs