# HG changeset patch # User Paul Boddie # Date 1240791622 -7200 # Node ID 0a00400508cd5af6987c9de899514da177b67122 # Parent cffd1a32916e7992adb3bbb9190a7886f98dd0a7 Added structure field notes. diff -r cffd1a32916e -r 0a00400508cd docs/concepts.txt --- a/docs/concepts.txt Sun Apr 26 18:26:46 2009 +0200 +++ b/docs/concepts.txt Mon Apr 27 02:20:22 2009 +0200 @@ -199,12 +199,30 @@ defaults reference +Classcode +--------- + +Used in attribute lookup. + Here, the classcode refers to the attribute lookup table for the object (as described above). Classes and instances share the same classcode, and their structures reflect this. Functions all belong to the same type and thus employ the classcode for the function built-in type, whereas modules have distinct types since they must support different sets of attributes. +Attrcode +-------- + +Used to test instances for membership of classes (or descendants of classes). + +Since, in traditional Python, classes are only ever instances of the "type" +built-in class, support for testing such a relationship could be removed and +the attrcode eliminated for classes, such that the presence of an attrcode +would indicate that a given object is an instance. + +Structure Types +--------------- + Class C: 0 1 2 3 4 5 6 7 8 9