micropython

tests/attributes_class_rebind.py

523:43f315a8e0f0
2012-06-05 Paul Boddie Added warning annotations where no attribute access targets are found from usage observations.
     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