The same code, gave error in PyPy3 , but got AC in Python3.
The error in PyPy3 was not getting caught by the except block as well for some reason, pretty weird behaviour , if anyone has any idea what the problem was, please let me know, here are the codes
PyPy3 : CodeChef: Practical coding for everyone (RE)
Python3 : CodeChef: Practical coding for everyone (AC)
Please let me know, if you have any idea why this might be happening ;-;
This is the error when running your code with 2nd test file:
RPython traceback:
File "rpython_jit_metainterp_optimizeopt.c", line 47763, in OptUnroll_jump_to_existing_trace
File "rpython_jit_metainterp_optimizeopt_1.c", line 17291, in OptUnroll__jump_to_existing_trace
File "rpython_jit_metainterp_optimizeopt_1.c", line 49258, in OptUnroll_inline_short_preamble
File "rpython_jit_metainterp_optimizeopt.c", line 48579, in Optimizer_send_extra_operation
File "rpython_jit_metainterp_optimizeopt_4.c", line 19721, in OptIntBounds_propagate_bounds_INT_ADD
Fatal RPython error: AssertionError
1 Like