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