micropython

tests/failure/shadow_locals_globals.py

803:39ba98ecc020
2014-06-01 Paul Boddie Fixed a docstring to describe the method's actual return value. syspython-as-target
     1 #!/usr/bin/env python     2      3 a = 1     4      5 def before():     6     i = 2     7     while i > 0:     8         b = a # right hand side name changes origin     9         a = 2    10         i -= 1    11     return b    12     13 result1_1 = before()    14     15 # vim: tabstop=4 expandtab shiftwidth=4