tests/call_func_extra.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/call_func_extra.py Fri Mar 21 02:14:30 2008 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +def f(a, b, *c): 1.7 + pass 1.8 + 1.9 +f(1, 2, 3) 1.10 +f(1, b=2) 1.11 +f(1, 2, 3, 4) 1.12 + 1.13 +g = f 1.14 +g(1, 2, 3) 1.15 +g(1, b=2) 1.16 +g(1, 2, 3, 4) 1.17 + 1.18 +def g(a, c, *b): 1.19 + pass 1.20 + 1.21 +g(1, c=2) 1.22 +g(1, 2, 3, 4) 1.23 + 1.24 +# vim: tabstop=4 expandtab shiftwidth=4