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
{{ message }}
Repository navigation
BLOCKER: LPython can't find dict key, but CPython can find it #2011
(lp) ┌─(~/CLionProjects/lpython/lasr/LP-pycharm/Issue2011)───────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s012)─┐
└─(17:51:22 on brian-lasr ✹ ✭)──> PYTHONPATH='../../../src/runtime/lpython' python lasr_lexer.py ──(Thu,Jun22)─┘
(lp) ┌─(~/CLionProjects/lpython/lasr/LP-pycharm/Issue2011)───────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s012)─┐
└─(17:51:30 on brian-lasr ✹ ✭)──>~/CLionProjects/lpython/src/bin/lpython -I. lasr_lexer.py ──(Thu,Jun22)─┘
KeyError: The dict does not contain the specified key
Activity
certik commentedon Jun 23, 2023
Here is a minimal reproducible example:
Gives:
If I remove any more keys from the dictionary, then it passes. It only happens in the LLVM backend, C works.
certik commentedon Jun 23, 2023
@czgdp1807 do you think you could please have a look at this? This looks like a bug in our dictionary implementation.
rebcabin commentedon Jun 23, 2023
thanks for jumping on this :) you guys are great!
rebcabin commentedon Jun 23, 2023
verified ! :)
certik commentedon Jun 23, 2023
Keep reporting bugs!