micropython

tests/attributes_class_rebind.py

530:0f9aa4c4d92c
2012-06-09 Paul Boddie Added an __iter__ method for strings.
     1 #!/usr/bin/env python     2      3 class C:     4     e = 123     5      6 def f(obj):     7     obj.e = 456 # should rebind C.e     8      9 f(C)    10 result_456 = C.e    11     12 # vim: tabstop=4 expandtab shiftwidth=4