nac3/nac3standalone/demo/src
David Mak e0de82993f core: Preserve value of variable shadowed by for loop
Previously, the final value of the target expression would be one after
the last element of the loop, which does not match Python's behavior.

This commit fixes this problem while also preserving the last assigned
value of the loop beyond the loop, matching Python's behavior.
2023-09-06 20:09:36 +08:00
..
classes.py nac3standalone: reorganize demos, compare against cpython 2022-01-23 10:35:06 +08:00
default_param.py nac3standalone: add test for default param 2022-03-30 04:05:47 +08:00
inheritance.py nac3standalone: add more tests 2022-06-01 17:58:16 +08:00
len.py nac3standalone: add tests for list slice and len 2022-01-26 03:58:27 +08:00
lists.py nac3standalone: fix broken test 2022-04-05 18:21:46 +08:00
loop_decr.py core: Preserve value of variable shadowed by for loop 2023-09-06 20:09:36 +08:00
loop_mutate_var.py core: Preserve value of variable shadowed by for loop 2023-09-06 20:09:36 +08:00
loop.py standalone: Adapt loop example to output loop variable 2023-09-06 18:56:45 +08:00
mandelbrot.py nac3standalone: reorganize demos, compare against cpython 2022-01-23 10:35:06 +08:00
min_max_abs.py nac3standalone: add test for abs function 2022-03-08 23:26:01 +08:00
operators.py nac3standalone: add tests for operators 2022-04-18 15:31:56 +08:00
option.py Option type support (#224) 2022-03-26 15:09:15 +08:00
pow.py nac3standalone: add tests for power 2022-04-04 22:10:56 +08:00
recursive_type.py nac3standalone: add more tests 2022-06-01 17:58:16 +08:00
tuple.py nac3standalone: add tests for tuple 2022-03-27 10:31:20 +08:00
typevar.py nac3standalone: add more tests 2022-06-01 17:58:16 +08:00