1.1 --- a/docs/structures.txt Wed Aug 27 00:45:14 2008 +0200
1.2 +++ b/docs/structures.txt Mon Sep 01 01:32:32 2008 +0200
1.3 @@ -166,7 +166,8 @@
1.4 0 1 2 3 4 5 6
1.5 classcode attrcode invocation invocation __class__ attribute ...
1.6 reference #args, reference reference
1.7 - #defaults
1.8 + defaults
1.9 + reference
1.10
1.11 Here, the classcode refers to the attribute lookup table for the object. Since
1.12 classes and instances share the same classcode, they might resemble the
1.13 @@ -177,14 +178,16 @@
1.14 0 1 2 3 4 5 6
1.15 code for C attrcode __new__ __new__ class type attribute ...
1.16 for C reference #args, reference reference
1.17 - #defaults
1.18 + defaults
1.19 + reference
1.20
1.21 Instance of C:
1.22
1.23 0 1 2 3 4 5 6
1.24 code for C attrcode C.__call__ C.__call__ class C attribute ...
1.25 for C reference #args, reference reference
1.26 - (if exists) #defaults
1.27 + (if exists) defaults
1.28 + reference
1.29
1.30 The __new__ reference would lead to code consisting of the following
1.31 instructions:
1.32 @@ -203,7 +206,8 @@
1.33 0 1 2 3 4 5 6
1.34 code for attrcode code code class attribute ...
1.35 function for reference #args, function (default)
1.36 - function #defaults reference reference
1.37 + function defaults reference reference
1.38 + reference
1.39
1.40 Here, the code reference would lead to code for the function. Note that the
1.41 function locals are completely distinct from this structure and are not