micropython

tests/failure/shadow_locals_globals_reassign.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 reassign():     6     i = 2     7     while i > 0:     8         a = a # right hand side name changes origin     9         i -= 1    10     return a    11     12 result2_1 = reassign()    13     14 # vim: tabstop=4 expandtab shiftwidth=4