tests/call_func_extra_known.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/call_func_extra_known.py Sun Jul 19 22:17:23 2009 +0200 1.3 @@ -0,0 +1,16 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +def f(a, b, *c): 1.7 + return c 1.8 + 1.9 +r1 = f(1, 2, 3) 1.10 +r2 = f(1, b=2) 1.11 +r3 = f(1, 2, 3, 4) 1.12 + 1.13 +result_0 = len(r2) 1.14 +result_1 = len(r1) 1.15 +result_2 = len(r3) 1.16 +result_3 = r1[0] 1.17 +result_4 = r3[1] 1.18 + 1.19 +# vim: tabstop=4 expandtab shiftwidth=4