2013-04-19 | Paul Boddie | raw annotate files changeset graph | Renamed various access functions and removed the distinction between address-based and object-relative access. Added context-related notes for each of the access functions. Added notes on object type detection. | syspython-as-target |
1 #!/usr/bin/env python 2 3 a1 = tuple((1, 2, 3)) 4 a2 = tuple((1, 2, 3)) 5 b1 = tuple((1, tuple((2, 3)), 4, 5)) 6 7 result_1 = a1[0] 8 result_2 = a2[1] 9 result_3 = b1[1][1] 10 result_4 = b1[2] 11 resultL_2 = len(b1[1]) 12 resultL_3 = len(a1) 13 resultL_4 = len(b1) 14 15 # vim: tabstop=4 expandtab shiftwidth=4