tests/attribute_access_type_restriction_loop_list.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/attribute_access_type_restriction_loop_list.py Tue Jul 05 00:40:32 2011 +0200 1.3 @@ -0,0 +1,13 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +def test_loop(start, end): 1.7 + l = [] 1.8 + while start < end: 1.9 + l.append(start) 1.10 + start += 1 1.11 + return l 1.12 + 1.13 +l = test_loop(0, 5) 1.14 +result_4 = l[-1] 1.15 + 1.16 +# vim: tabstop=4 expandtab shiftwidth=4