1.1 --- a/docs/concepts.txt Mon Apr 27 02:20:22 2009 +0200
1.2 +++ b/docs/concepts.txt Fri May 01 01:02:20 2009 +0200
1.3 @@ -189,14 +189,14 @@
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 Flag Identifier Size Object Object ...
1.11 + Identifier Identifier Address Details Identifier Size Object Object ...
1.12
1.13 - 0 1 2 3 4 5 6 7 8 9
1.14 - classcode attrcode invocation invocation instance funccode size __class__ attribute ...
1.15 - reference #args, status reference reference
1.16 - defaults
1.17 + 0 1 2 3 4 5 6 7 8
1.18 + classcode attrcode/ invocation invocation funccode size __class__ attribute ...
1.19 + instance reference #args, reference reference
1.20 + status defaults
1.21 reference
1.22
1.23 Classcode
1.24 @@ -216,43 +216,43 @@
1.25 Used to test instances for membership of classes (or descendants of classes).
1.26
1.27 Since, in traditional Python, classes are only ever instances of the "type"
1.28 -built-in class, support for testing such a relationship could be removed and
1.29 -the attrcode eliminated for classes, such that the presence of an attrcode
1.30 -would indicate that a given object is an instance.
1.31 +built-in class, support for testing such a relationship directly has been
1.32 +removed and the attrcode is not specified for classes: the presence of an
1.33 +attrcode indicates that a given object is an instance.
1.34
1.35 Structure Types
1.36 ---------------
1.37
1.38 Class C:
1.39
1.40 - 0 1 2 3 4 5 6 7 8 9
1.41 - classcode attrcode __new__ __new__ false size class type attribute ...
1.42 - for C for C reference #args, reference reference
1.43 + 0 1 2 3 4 5 6 7 8
1.44 + classcode (unused) __new__ __new__ size class type attribute ...
1.45 + for C reference #args, reference reference
1.46 defaults
1.47 reference
1.48
1.49 Instance of C:
1.50
1.51 - 0 1 2 3 4 5 6 7 8 9
1.52 - classcode attrcode C.__call__ C.__call__ true size class C attribute ...
1.53 - for C for C reference #args, reference reference
1.54 + 0 1 2 3 4 5 6 7 8
1.55 + classcode attrcode C.__call__ C.__call__ size class C attribute ...
1.56 + for C for C reference #args, reference reference
1.57 (if exists) defaults
1.58 reference
1.59
1.60 Function f:
1.61
1.62 - 0 1 2 3 4 5 6 7 8 9
1.63 - classcode attrcode code code true funccode size class attribute ...
1.64 - for for reference #args, function (default)
1.65 - function function defaults reference reference
1.66 + 0 1 2 3 4 5 6 7 8
1.67 + classcode attrcode code code funccode size class attribute ...
1.68 + for for reference #args, function (default)
1.69 + function function defaults reference reference
1.70 reference
1.71
1.72 Module m:
1.73
1.74 - 0 1 2 3 4 5 6 7 8 9
1.75 - classcode attrcode (unused) (unused) true module type attribute ...
1.76 - for m for m reference (global)
1.77 - reference
1.78 + 0 1 2 3 4 5 6 7 8
1.79 + classcode attrcode (unused) (unused) module type attribute ...
1.80 + for m for m reference (global)
1.81 + reference
1.82
1.83 The __class__ Attribute
1.84 -----------------------