micropython

tests/failure/classes.py

334:662e6ce9a750
2010-06-12 Paul Boddie Fixed scope handling where names are imported into namespaces. Added a simple iter built-in function. Made the xrange test use the iteration protocol.
     1 #!/usr/bin/env python     2      3 class A:     4     pass     5      6 class B:     7     pass     8      9 for x in A, B:    10     class C(x):    11         pass    12     13 # vim: tabstop=4 expandtab shiftwidth=4