1.1 --- a/docs/concepts.txt Thu Apr 23 00:52:33 2009 +0200
1.2 +++ b/docs/concepts.txt Sun Apr 26 03:24:12 2009 +0200
1.3 @@ -189,13 +189,13 @@
1.4 certain common features and operations are supported in the same way for all
1.5 of these things. To permit this, a common data structure format is used.
1.6
1.7 - Header........................................ Attributes.................
1.8 + Header............................................................................ Attributes.................
1.9
1.10 - Identifier Identifier Address Details Object Object ...
1.11 + Identifier Identifier Address Details Flag Identifier Size Object Object ...
1.12
1.13 - 0 1 2 3 4 5 6
1.14 - classcode attrcode invocation invocation __class__ attribute ...
1.15 - reference #args, reference reference
1.16 + 0 1 2 3 4 5 6 7 8 9
1.17 + classcode attrcode invocation invocation instance funccode size __class__ attribute ...
1.18 + reference #args, status reference reference
1.19 defaults
1.20 reference
1.21
1.22 @@ -207,34 +207,34 @@
1.23
1.24 Class C:
1.25
1.26 - 0 1 2 3 4 5 6
1.27 - classcode attrcode __new__ __new__ class type attribute ...
1.28 - for C for C reference #args, reference reference
1.29 + 0 1 2 3 4 5 6 7 8 9
1.30 + classcode attrcode __new__ __new__ false size class type attribute ...
1.31 + for C for C reference #args, reference reference
1.32 defaults
1.33 reference
1.34
1.35 Instance of C:
1.36
1.37 - 0 1 2 3 4 5 6
1.38 - classcode attrcode C.__call__ C.__call__ class C attribute ...
1.39 - for C for C reference #args, reference reference
1.40 + 0 1 2 3 4 5 6 7 8 9
1.41 + classcode attrcode C.__call__ C.__call__ true size class C attribute ...
1.42 + for C for C reference #args, reference reference
1.43 (if exists) defaults
1.44 reference
1.45
1.46 Function f:
1.47
1.48 - 0 1 2 3 4 5 6
1.49 - classcode attrcode code code class attribute ...
1.50 - for for reference #args, function (default)
1.51 - function function defaults reference reference
1.52 + 0 1 2 3 4 5 6 7 8 9
1.53 + classcode attrcode code code true funccode size class attribute ...
1.54 + for for reference #args, function (default)
1.55 + function function defaults reference reference
1.56 reference
1.57
1.58 Module m:
1.59
1.60 - 0 1 2 3 4 5 6
1.61 - classcode attrcode (unused) (unused) module type attribute ...
1.62 - for m for m reference (global)
1.63 - reference
1.64 + 0 1 2 3 4 5 6 7 8 9
1.65 + classcode attrcode (unused) (unused) true module type attribute ...
1.66 + for m for m reference (global)
1.67 + reference
1.68
1.69 The __class__ Attribute
1.70 -----------------------
1.71 @@ -246,6 +246,13 @@
1.72 Function: refers to the function class
1.73 Instance: refers to the class instantiated to make the object
1.74
1.75 +Lists and Tuples
1.76 +----------------
1.77 +
1.78 +The built-in list and tuple sequences employ variable length structures using
1.79 +the attribute locations to store their elements, where each element is a
1.80 +reference to a separately stored object.
1.81 +
1.82 Testing Instance Compatibility with Classes (attrcode)
1.83 ------------------------------------------------------
1.84