1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/call_func_extra_known_with_locals.py Wed Mar 23 00:58:57 2011 +0100
1.3 @@ -0,0 +1,17 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +def f(a, b, *c):
1.7 + d = 123 # introduce locals in the frame
1.8 + return c
1.9 +
1.10 +r1 = f(1, 2, 3)
1.11 +r2 = f(1, b=2)
1.12 +r3 = f(1, 2, 3, 4)
1.13 +
1.14 +result_0 = len(r2)
1.15 +result_1 = len(r1)
1.16 +result_2 = len(r3)
1.17 +result_3 = r1[0]
1.18 +result_4 = r3[1]
1.19 +
1.20 +# vim: tabstop=4 expandtab shiftwidth=4