micropython

Changeset

548:e297c6ae4b7c
2012-06-14 Paul Boddie raw files shortlog changelog graph Added notes about the analysis of PyPy's interpreter code.
docs/rpython.txt (file)
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docs/rpython.txt	Thu Jun 14 22:53:23 2012 +0200
     1.3 @@ -0,0 +1,23 @@
     1.4 +Analysis of the PyPy Interpreter
     1.5 +================================
     1.6 +
     1.7 +Program used for analysis: pypy/pypy/bin/py.py
     1.8 +
     1.9 +Errors
    1.10 +------
    1.11 +
    1.12 +Error in 'pypy.rpython.ootypesystem.ootype' at line 1048: Base class
    1.13 +CallFunc(Name('_null_mixin'), [Name('_instance')], None, None)
    1.14 +for 'pypy.rpython.ootypesystem.ootype._null_instance' is not found: it may be
    1.15 +hidden in some way.
    1.16 +
    1.17 +  Fixed by redefining _null_mixin and parameterising it in subclasses that are then used.
    1.18 +
    1.19 +Error in 'pypy.annotation.binaryop' at line 64: Base class
    1.20 +CallFunc(Name('pairtype'), [Name('SomeObject'), Name('SomeObject')], None, None)
    1.21 +for 'pypy.annotation.binaryop.__extend__' is not found: it may be hidden in
    1.22 +some way.
    1.23 +
    1.24 +  Caused by usage of pypy.tool.pairtype which uses the __new__ method.
    1.25 +  Micropython does not support the metaclass tricks suggested in the offending
    1.26 +  module.