1.1 --- a/docs/concepts.txt Sat May 09 03:21:15 2009 +0200
1.2 +++ b/docs/concepts.txt Mon May 11 02:17:12 2009 +0200
1.3 @@ -196,8 +196,9 @@
1.4 0 1 2 3 4 5 6 7 8
1.5 classcode attrcode/ invocation invocation funccode size __class__ attribute ...
1.6 instance reference #args, reference reference
1.7 - status defaults
1.8 - reference
1.9 + status defaults,
1.10 + * parameter
1.11 + details
1.12
1.13 Classcode
1.14 ---------
1.15 @@ -220,6 +221,24 @@
1.16 removed and the attrcode is not specified for classes: the presence of an
1.17 attrcode indicates that a given object is an instance.
1.18
1.19 +Invocation Reference
1.20 +--------------------
1.21 +
1.22 +Used when an object is called.
1.23 +
1.24 +This is the address of the code to be executed when an invocation is performed
1.25 +on the object.
1.26 +
1.27 +Invocation Arguments
1.28 +--------------------
1.29 +
1.30 +Used when an object is called.
1.31 +
1.32 +The argument details consist of the number of positional arguments involved in
1.33 +an invocation, the number of defaults available to compensate for missing
1.34 +arguments, and whether a star (*) parameter is available to accept superfluous
1.35 +arguments.
1.36 +
1.37 Attributes
1.38 ----------
1.39
1.40 @@ -236,24 +255,27 @@
1.41 0 1 2 3 4 5 6 7 8
1.42 classcode (unused) __new__ __new__ funccode size class type attribute ...
1.43 for C reference #args, for reference reference
1.44 - defaults instantiator
1.45 - reference
1.46 + defaults, instantiator
1.47 + * parameter
1.48 + details
1.49
1.50 Instance of C:
1.51
1.52 0 1 2 3 4 5 6 7 8
1.53 classcode attrcode C.__call__ C.__call__ funccode size class C attribute ...
1.54 for C for C reference #args, for reference reference
1.55 - (if exists) defaults C.__call__
1.56 - reference
1.57 + (if exists) defaults, C.__call__
1.58 + * parameter
1.59 + details
1.60
1.61 Function f:
1.62
1.63 0 1 2 3 4 5 6 7 8
1.64 classcode attrcode code code funccode size class attribute ...
1.65 for for reference #args, function (default)
1.66 - function function defaults reference reference
1.67 - reference
1.68 + function function defaults, reference reference
1.69 + * parameter
1.70 + details
1.71
1.72 Module m:
1.73