diff options
Diffstat (limited to 'tests/basics/closure_manyvars.py')
-rw-r--r-- | tests/basics/closure_manyvars.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/closure_manyvars.py b/tests/basics/closure_manyvars.py new file mode 100644 index 0000000000..4ae723726b --- /dev/null +++ b/tests/basics/closure_manyvars.py @@ -0,0 +1,9 @@ +# test closure with lots of closed over variables + +def f(): + a, b, c, d, e, f, g, h = [i for i in range(8)] + def x(): + print(a, b, c, d, e, f, g, h) + x() + +f() |