1.1 --- a/docs/invocation.txt Sat Jul 26 01:16:02 2008 +0200
1.2 +++ b/docs/invocation.txt Sun Jul 27 02:00:31 2008 +0200
1.3 @@ -19,7 +19,7 @@
1.4
1.5 Least expensive cases:
1.6
1.7 - f(1, 2, 3) # put arguments on stack
1.8 + f(1, 2, 3) # put arguments in frame
1.9 # if f is not known, add arguments vs. parameters check
1.10 f(1, 2) # to handle defaults, introduce default "filling" where
1.11 # not enough arguments are given
1.12 @@ -27,7 +27,7 @@
1.13
1.14 More expensive cases:
1.15
1.16 - f(1, 2, c=3) # prepare stack using parameter details
1.17 + f(1, 2, c=3) # prepare frame using parameter details
1.18 # (provided c is a known parameter)
1.19 # if f is not known, this is obviously done at run-time
1.20 f(1, c=3) # as with the previous case, with default "filling" done
1.21 @@ -89,6 +89,16 @@
1.22 1 -> argument #3
1.23 2 -> argument #4
1.24
1.25 +Argument lists for classes:
1.26 +
1.27 + f(obj, 1, 2) # f known as C at compile-time
1.28 +
1.29 + f -> C.__new__ - don't get any context information
1.30 + -> any __init__ method will be called from C.__new__
1.31 + obj -> argument #1
1.32 + 1 -> argument #2
1.33 + 2 -> argument #3
1.34 +
1.35 Argument lists for unknown callables:
1.36
1.37 f(obj, 1, 2) # f not known at compile-time