2011-05-01 | Paul Boddie | raw annotate files changeset graph | Added support for dynamic attribute accesses by extending string constants that potentially refer to attributes with object table index information, using the new _accessor class. Such constants are produced when the _accessor class is in use, currently only when the built-in getattr function is used, mentioning the _accessor class and causing it to be incorporated into generated programs. Added tests of attribute access involving the object table and getattr, together with tests which should demonstrate strings remaining as instances of str because getattr has been replaced with a "fake" version that invokes the object table mechanisms directly. |