396:5692f2b87aab
|
2011-02-20 |
Paul Boddie |
changeset
files
shortlog
graph
|
Fixed __class__ to always be at attribute position 0. |
|
|
micropython/data.py
|
|
395:53332d0be6ac
|
2011-02-19 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added __class__ attribute locations to constants and statically generated lists
and tuples.
Changed the RSVP machine and library to use common definitions for object data
offsets and primitive object sizes.
Changed the isinstance implementation to make use of changes to the __class__
attribute on classes and instances. |
|
|
lib/builtins.py micropython/rsvp.py micropython/trans.py rsvp.py rsvplib.py
|
|
394:9c6deab845e0
|
2011-01-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Introduced a degree of support for classes and instances having separate
__class__ attributes that are accessed in a class/instance-relative fashion.
Added the __class__ attribute as a special case of a non-static attribute. This
changes code generation such that a constant accessor (a class) may yield an
attribute which should not be accessed via a fixed location. (Although this may
be cautious and also limited by the behaviour of the object table, if class
attribute assignment is to be permitted in future, more distinctions between
apparently static attributes may need to be enforced.)
Made the type class a special case which is created in advance so that all
classes may refer to it via their __class__ attributes, and whose details are
populated when the class is actually encountered in the __builtins__ module.
Made extra space in the instance templates for the __class__ attribute, adding
support for the copying of this data when new instances are created.
Introduced type-specific vacuum support in order to correctly perform vacuuming.
Changed various class references in the micropython module.
Tidied up to "to do" document, putting items into separate sections.
Added various tests of the new features. |
|
|
TO_DO.txt docs/concepts.txt micropython/__init__.py micropython/data.py micropython/inspect.py micropython/rsvp.py micropython/table.py micropython/trans.py rsvp.py tests/class_attr_ref_to_class.py ...
|
|
393:820ab4a8b723
|
2011-01-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added initial support for the print statement.
Added a check for attributes having been defined when vacuuming objects. |
|
|
lib/builtins.py micropython/ast.py micropython/inspect.py micropython/trans.py tests/print.py
|
|
392:e45c2eb227a3
|
2010-11-06 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added some references. |
|
|
docs/related.txt
|
|
391:51d530785a82
|
2010-11-01 |
Paul Boddie |
changeset
files
shortlog
graph
|
Fixed tuple parameter unpacking to store elements properly in locals.
Simplified index handling in the RSVP library implementation, normalising index
values in the Python code. |
|
|
lib/builtins.py micropython/trans.py rsvplib.py
|
|
390:ecfc0f945064
|
2010-11-01 |
Paul Boddie |
changeset
files
shortlog
graph
|
Simplified the RSVP library implementations for item access, introducing Python
code for __getitem__ and __getslice__ along with various utility functions. |
|
|
TO_DO.txt lib/builtins.py rsvplib.py
|
|
389:078c71c2a581
|
2010-09-27 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added instruction coverage reporting. |
|
|
rsvp.py
|
|
388:dd7487acd048
|
2010-09-21 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved various dictionary operations into common functions.
Attempted to introduce attribute usage effects for the continue statement,
distinct from the break statement. |
|
|
docs/annotations.txt micropython/__init__.py micropython/common.py micropython/data.py micropython/inspect.py tests/attribute_access_type_restriction_loop_break.py tests/attribute_access_type_restriction_loop_continue.py
|
|
387:21fee0baed9f
|
2010-09-17 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added branch suspension where "break" statements cause usage information for a
branch to be suspended until after a loop has been inspected.
Moved dictionary merging code into a common function.
Fixed an existing test of abandoned attribute usage.
Added a link to a description of RPython and Shed Skin restrictions. |
|
|
docs/related.txt micropython/common.py micropython/data.py micropython/inspect.py tests/abandoned_attribute_usage_multiple_candidates_nested.py tests/attribute_access_type_restriction_loop_break.py
|
|