# HG changeset patch # User Paul Boddie # Date 1281911183 -7200 # Node ID c1d86ea03224fe381dcf46092105e62fb8ac1831 # Parent ff6e0ddbdd6190163b94b135d9e0beb17de8d3cb Added space above the code in each report in order to permit pop-up elements to appear early in modules. Removed __import__ from the builtins, since it is unlikely to be supported. Added a note about a potential class attribute positioning optimisation. diff -r ff6e0ddbdd61 -r c1d86ea03224 TO_DO.txt --- a/TO_DO.txt Sun Aug 15 23:37:53 2010 +0200 +++ b/TO_DO.txt Mon Aug 16 00:26:23 2010 +0200 @@ -1,3 +1,8 @@ +Support class attribute positioning similar to instance attribute positioning, potentially +(for both) based on usage observations. For example, if __iter__ is used on two classes, +the class attribute could be exposed at a similar relative position to the class (and +potentially accessible using a LoadAttr-style instruction). + Consider references to defaults as occurring only within the context of a particular function, thus eliminating default value classes if such functions are not themselves invoked. @@ -17,8 +22,6 @@ set # could be confused by the local definition at run-time ---- -Support operator module usage instead of explicit operator code generation. - Support __init__ traversal (and other implicit names) more effectively. Check context_value initialisation (avoiding or handling None effectively). diff -r ff6e0ddbdd61 -r c1d86ea03224 lib/builtins.py --- a/lib/builtins.py Sun Aug 15 23:37:53 2010 +0200 +++ b/lib/builtins.py Mon Aug 16 00:26:23 2010 +0200 @@ -385,9 +385,8 @@ # General functions. # NOTE: Some of these are actually provided by classes in CPython. # NOTE: We may refuse to support some of these in practice, such as... -# NOTE: super, reload. +# NOTE: __import__, super, reload. -def __import__(name, globals=None, locals=None, fromlist=None, level=-1): pass def abs(number): pass def all(iterable): pass def any(iterable): pass diff -r ff6e0ddbdd61 -r c1d86ea03224 micropython/report.py --- a/micropython/report.py Sun Aug 15 23:37:53 2010 +0200 +++ b/micropython/report.py Mon Aug 16 00:26:23 2010 +0200 @@ -44,6 +44,7 @@ padding-bottom: 4em; font-size: 14pt; font-family: monospace; background-color: black; color: white; + margin-top: 2em; } a {