tests/tuple_call.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/tuple_call.py Wed Mar 23 00:58:57 2011 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +a1 = tuple((1, 2, 3)) 1.7 +a2 = tuple((1, 2, 3)) 1.8 +b1 = tuple((1, tuple((2, 3)), 4, 5)) 1.9 + 1.10 +result_1 = a1[0] 1.11 +result_2 = a2[1] 1.12 +result_3 = b1[1][1] 1.13 +result_4 = b1[2] 1.14 +resultL_2 = len(b1[1]) 1.15 +resultL_3 = len(a1) 1.16 +resultL_4 = len(b1) 1.17 + 1.18 +# vim: tabstop=4 expandtab shiftwidth=4