1.1 --- a/docs/syspython.txt Fri Jul 05 17:16:07 2013 +0200
1.2 +++ b/docs/syspython.txt Fri Jul 05 18:03:54 2013 +0200
1.3 @@ -35,6 +35,11 @@
1.4
1.5 constants(...)
1.6
1.7 +Each module may feature keyword arguments, and a list of such names is
1.8 +provided as follows:
1.9 +
1.10 + keywords(...)
1.11 +
1.12 Explicit structure declaration is still performed using class statements,
1.13 but base classes are omitted and attributes are declared explicitly as
1.14 follows:
1.15 @@ -183,11 +188,12 @@
1.16 In general, attribute access must use an explicit function indicating the
1.17 kind of access operation being performed. For example:
1.18
1.19 - # context effect
1.20 - # --------------
1.21 + # context effect
1.22 +
1.23 loadattr(obj, attrname) # preserve context
1.24 loadattrcontext(parent, attrname, obj) # replace context with obj
1.25 loadattrcontextcond(parent, attrname, obj) # run-time context decision
1.26 +
1.27 loadattrindex(obj, attrname) # preserve context
1.28 loadattrindexcontextcond(obj, attrname) # run-time context decision
1.29
1.30 @@ -195,6 +201,10 @@
1.31 storeattrcontext(parent, attrname, value, obj) # replace context with obj
1.32 storeattrindex(obj, attrname, value)
1.33
1.34 +Recall that for loadattrindex family functions, the location of the attribute
1.35 +is obtained from the object table and the nature of the attribute is
1.36 +determined from the stored context value.
1.37 +
1.38 Temporary variables could employ similar functions:
1.39
1.40 loadtemp(0)