[pypy-dev] Release

Ben.Young at risk.sungard.com Ben.Young at risk.sungard.com
Fri Aug 26 13:39:05 CEST 2005


I know you are making a release soon, so I thought I'd send you this patch 
which fixes a couple of test issues. With this patch I get 14 test 
failures still, so I will attach the test log as well.



Cheers,
Ben
-------------- next part --------------
============================= test process starts =============================
testing-mode: inprocess
executable:   c:\Python24\python.exe  (2.4.1-final-0)
using py lib: c:\Documents and Settings\YoungB\dist\py <rev unknown>

annotation\test\test_model.py[10] ..........
annotation\test\test_pairtype.py[3] ...
doc\test_redirections.py[30] ..............................
doc\_ref.txt[47] s..............................................
doc\architecture.txt[9] s........
doc\coding-guide.txt[6] s.....
doc\contact.txt[2] s.
doc\contributor.txt[2] s.
doc\ext-functions-draft.txt[2] s.
doc\extradoc.txt[2] s.
doc\faq.txt[2] s.
doc\gc_planning.txt[2] s.
doc\getting-started.txt[14] s.............
doc\index.txt[31] s..............................
doc\interpreter.txt[11] s..........
doc\misc.txt[2] s.
doc\news.txt[2] s.
doc\objspace.txt[7] s......
doc\parser.txt[2] s.
doc\release-0.6.txt[2] s.
doc\svn-help.txt[3] s..
doc\theory.txt[6] s.....
doc\translation.txt[7] s......
interpreter\pyparser\test\test_astbuilder.py[?].................................................................................................................................................................................................................................................................................
interpreter\pyparser\test\test_astcompiler.py[?]...
interpreter\pyparser\test\test_lookahead.py[8] ........
interpreter\pyparser\test\test_parsestring.py[3] ...
interpreter\pyparser\test\test_pytokenizer.py[5] .....
interpreter\pyparser\test\test_samples.py[71] .......................................................................
interpreter\test\test_appinterp.py[15] ...............
interpreter\test\test_class.py[14] ..............
interpreter\test\test_code.py[2] ..
interpreter\test\test_compiler.py[33] .................................
interpreter\test\test_descrtypecheck.py[2] ..
interpreter\test\test_eval.py[2] ..
interpreter\test\test_exceptcomp.py[11] ...........
interpreter\test\test_exec.py[19] ...................
interpreter\test\test_function.py[28] ............................
interpreter\test\test_gateway.py[13] .............
interpreter\test\test_generator.py[8] ........
interpreter\test\test_interpreter.py[27] .....................s.....
interpreter\test\test_main.py[3] ...
interpreter\test\test_module.py[5] .....
interpreter\test\test_nestedscope.py[6] ......
interpreter\test\test_objspace.py[14] ..............
interpreter\test\test_py.py[5] ....s
interpreter\test\test_pyframe.py[9] .........
interpreter\test\test_raise.py[13] .............
interpreter\test\test_special.py[2] ..
interpreter\test\test_synerr.py[1] .
interpreter\test\test_typedef.py[2] ..
lib\test2\test_deque_extra.py[3] ...
lib\test2\test_exception_extra.py[1] .
lib\test2\test_exceptions_extra.py[1] .
lib\test2\test_file_extra.py[13] .............
lib\test2\test_imp_extra.py[7] .......
lib\test2\test_marshal_extra.py[156] ...s.....s.....s.....s.....s.........................................................................................s.....s.........ss.ss.ss.ss.ss.ss.ss.ss
lib\test2\test_md5_extra.py[5] .....
lib\test2\test_osfilewrapper.py[2] ..
lib\test2\test_sha_extra.py[2] ..
lib\test2\test_stablecompiler.py[1] .
lib\test2\test_string_extra.py[1] .
lib\test2\test_struct_extra.py[1] .
module\__builtin__\test\test_apply.py[3] ...
module\__builtin__\test\test_buffer.py[2] ..
module\__builtin__\test\test_builtin.py[43] ...........................................
module\__builtin__\test\test_complexobject.py[11] ...........
module\__builtin__\test\test_descriptor.py[6] ......
module\__builtin__\test\test_filter.py[11] ...........
module\__builtin__\test\test_functional.py[23] .......................
module\__builtin__\test\test_import.py[29] ............................s
module\__builtin__\test\test_minmax.py[14] ..............
module\__builtin__\test\test_range.py[19] ...................
module\__builtin__\test\test_reduce.py[4] ....
module\__builtin__\test\test_special.py[2] ..
module\__builtin__\test\test_vars.py[3] ...
module\__builtin__\test\test_zip.py[8] ........
module\_codecs\test\test_codecs.py[14] ..............
module\_sre\test\test_app_sre.py[99] sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
module\_sre\test\test_interp_sre.py[11] .....FFFF..
module\errno\test\test_errno.py[3] ...
module\marshal\test\test_marshal.py[30] ..............................
module\marshal\test\test_marshalimpl.py[1] .
module\parser\test\test_parser.py[1] .
module\parser\test\test_simple.py[0] 
module\posix\test\test_posix2.py[4] ....
module\sys\test\test_sysmodule.py[31] ...........................s...
module\thread\rpython\test\test_ll_thread.py[3] ...
module\thread\test\test_import_lock.py[1] s
module\thread\test\test_local.py[3] sss
module\thread\test\test_lock.py[1] s
module\thread\test\test_thread.py[6] ssssss
module\time\test\test_time.py[2] ..
module\unicodedata\test\test_unicodedata.py[2] ..
objspace\flow\test\test_framestate.py[10] ..........
objspace\flow\test\test_model.py[3] ...
objspace\flow\test\test_objspace.py[38] ......................................
objspace\std\test\test_boolobject.py[6] ......
objspace\std\test\test_dictobject.py[32] ................................
objspace\std\test\test_dictproxy.py[3] ...
objspace\std\test\test_floatobject.py[16] ................
objspace\std\test\test_instmethobject.py[5] .....
objspace\std\test\test_intobject.py[40] ........................................
objspace\std\test\test_iterobject.py[16] ................
objspace\std\test\test_listobject.py[42] ..........................................
objspace\std\test\test_listsort.py[2] ..
objspace\std\test\test_longobject.py[37] .....................................
objspace\std\test\test_multimethod.py[7] .......
objspace\std\test\test_noneobject.py[3] ...
objspace\std\test\test_obj.py[4] ....
objspace\std\test\test_operation.py[3] ...
objspace\std\test\test_sliceobject.py[7] .......
objspace\std\test\test_stdobjspace.py[4] ....
objspace\std\test\test_stringformat.py[27] ...........................
objspace\std\test\test_stringobject.py[52] ....................................................
objspace\std\test\test_strutil.py[8] ........
objspace\std\test\test_tupleobject.py[16] ................
objspace\std\test\test_typeobject.py[25] .........................
objspace\std\test\test_unicodeobject.py[17] .................
objspace\std\test\test_userobject.py[17] .................
objspace\test\test_descriptor.py[4] ....
objspace\test\test_descroperation.py[7] .......
objspace\test\test_thunkobjspace.py[5] .....
objspace\test\test_traceobjspace.py[5] .....
rpython\memory\test\test_address.py[28] ............................
rpython\memory\test\test_convertlltype.py[11] ...........
rpython\memory\test\test_gc.py[9] .........
rpython\memory\test\test_llinterpsim.py[28] ............................
rpython\memory\test\test_lltypesimulation.py[18] ..................
rpython\memory\test\test_simulator.py[8] ........
rpython\memory\test\test_support.py[1] .
rpython\module\test\test_ll_math.py[8] ........
rpython\module\test\test_ll_os.py[4] ....
rpython\module\test\test_ll_os_path.py[4] ....
rpython\module\test\test_ll_strtod.py[2] ..
rpython\module\test\test_posix.py FAILED TO LOAD MODULE
rpython\test\test_exception.py[3] ...
rpython\test\test_llann.py[14] ..............
rpython\test\test_llinterp.py[27] ...........................
rpython\test\test_lltype.py[23] .......................
rpython\test\test_nongc.py[8] ........
rpython\test\test_normalizecalls.py[2] ..
rpython\test\test_rarithmetic.py[36] ....................................
rpython\test\test_rbool.py[5] .....
rpython\test\test_rbuiltin.py[19] ...................
rpython\test\test_rclass.py[18] ..................
rpython\test\test_rconstantdict.py[4] ....
rpython\test\test_rdict.py[18] ..................
rpython\test\test_remptydict.py[1] .
rpython\test\test_rexternalobj.py[1] .
rpython\test\test_rfloat.py[5] .....
rpython\test\test_rint.py[9] .........
rpython\test\test_rlist.py[30] ..............................
rpython\test\test_robject.py[5] .....
rpython\test\test_rpbc.py[45] .............................................
rpython\test\test_rptr.py[2] ..
rpython\test\test_rrange.py[4] ....
rpython\test\test_rspecialcase.py[3] ...
rpython\test\test_rstr.py[34] ..................................
rpython\test\test_rtuple.py[10] ..........
rpython\test\test_rtyper.py[9] .........
test_all.py[0] 
tool\pytest\test\test_overview.py[1] s
tool\test\test_cache.py[1] .
tool\test\test_conftest1.py[4] ....
tool\test\test_getdocstrings.py[3] FFF
tool\test\test_pytestsupport.py[7] .......
tool\test\test_template.py[1] .
translator\c\test\test_annotated.py[20] ....................
translator\c\test\test_backendoptimized.py[44] ............................................
translator\c\test\test_boehm.py[1] F
translator\c\test\test_database.py[17] .................
translator\c\test\test_exception.py[5] .....
translator\c\test\test_extfunc.py[88] .................................................s...............F.........F............
translator\c\test\test_genc.py[11] ...........
translator\c\test\test_lltyped.py[2] ..
translator\c\test\test_notype.py[33] .................................
translator\c\test\test_operation.py[1] .
translator\c\test\test_standalone.py[1] testing_167.c
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(148) : warning C4244: 'return' : conversion from '__int64' to 'long', possible loss of data
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(186) : warning C4013: 'getcwd' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(186) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int'
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(195) : warning C4013: 'chdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(202) : warning C4013: 'mkdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(209) : warning C4013: 'rmdir' undefined; assuming extern returning int
.
translator\c\test\test_support.py[7] .......
translator\c\test\test_symboltable.py[1] .
translator\c\test\test_typed.py[43] ...........................................
translator\llvm2\test\test_class.py[16] ssssssssssssssss
translator\llvm2\test\test_exc_operation.py[14] ssssssssssssss
translator\llvm2\test\test_exception.py[12] ssssssssssss
translator\llvm2\test\test_extfunc.py[34] ssssssssssssssssssssssssssssssssss
translator\llvm2\test\test_gc.py[1] s
translator\llvm2\test\test_genllvm.py[33] sssssssssssssssssssssssssssssssss
translator\llvm2\test\test_genllvm1.py[15] sssssssssssssss
translator\llvm2\test\test_lltype.py[16] ssssssssssssssss
translator\llvm2\test\test_seq.py[19] sssssssssssssssssss
translator\llvm2\test\test_snippet.py[17] sssssssssssssssss
translator\llvm2\test\test_typed.py[22] ssssssssssssssssssssss
translator\pyrex\test\test_pyrextrans.py[21] .....................
translator\pyrex\test\test_sourcegen.py[3] ...
translator\test\test_annmm.py[2] ..
translator\test\test_annrpython.py[118] ......................................................................................................................
translator\test\test_annsimplify2.py[1] .
translator\test\test_annsimplifyrpython.py[118] ......................................................................................................................
translator\test\test_backendoptimization.py[2] ..
translator\test\test_backends.pytranslator\test\test_cltrans.py[14] ssssssssssssss
translator\test\test_geninterp.py[27] ...........................
translator\test\test_rpystone.py[1] .
translator\test\test_translator.py[1] .
translator\tool\test\test_cbuild.py[1] test.c
.


__________________________ reasons for skipped tests __________________________
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_gc.py:12
reason: Skipped: test_GC_malloc skipped because Boehm collector library was not found

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_genllvm1.py:58
reason: Skipped: overflow not working yet

Skipped in c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\appsupport.py:182
reason: Skipped: Reference counting is not implemented.

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:75
reason: Skipped: int_add_ovf operation missing (raises)

Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_py.py:80
reason: Skipped: cannot detect process exit code for now

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:152
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:157
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:146
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:127
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:140
reason: Skipped: ovf test

Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\pyparser\test\test_astbuilder.py:607
reason: Skipped: too ambitious for now (and time consuming)

Skipped in c:\Documents and Settings\YoungB\dist\pypy\module\thread\test\support.py:8
reason: Skipped: --usemodules=thread option not provided

Skipped in c:\Documents and Settings\YoungB\dist\pypy\module\__builtin__\test\test_import.py:369
reason: Skipped: unresolved issues with win32 shell quoting rules

Skipped in c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\test\test_overview.py:9
reason: Skipped: testresult directory not checked out

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:102
reason: Skipped: uint_floordiv_zer operation missing (raises)

Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:80
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:91
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:106
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:71
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:120
reason: Skipped: this version of CPython doesn't support this object

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\test\test_exc_operation.py:114
reason: Skipped: int add incorrect overflow test

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:87
reason: Skipped: this os has no ftruncate :-(

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\test\test_backends.py:12
reason: Skipped: the Translator and back-ends depend on too many conditions to test the back-ends generically

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\test\test_cltrans.py:45
reason: Skipped: Common Lisp neither configured nor detected.

Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm2\genllvm.py:380
reason: Skipped: llvm not found

Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_interpreter.py:240
reason: Skipped: expression too large for the recursive parser

Skipped in c:\Documents and Settings\YoungB\dist\pypy\module\_sre\test\test_app_sre.py:18
reason: Skipped: --usemodules=_sre option not provided

Skipped in c:\Documents and Settings\YoungB\dist\py\documentation\conftest.py:21
reason: Skipped: docutils not importable

_______________________________________________________________________________
________________________ entrypoint: test_basic_astgen ________________________

    def test_basic_astgen():
        for family in TESTS:
E           for expr in family:
>           TypeError: iteration over non-sequence

[c:\Documents and Settings\YoungB\dist\pypy\interpreter\pyparser\test\test_astcompiler.py:137]
_______________________________________________________________________________
________________________ entrypoint: test_at_beginning ________________________

    def test_at_beginning(space):
        assert isre.at_beginning(space,
E                               isre.MatchContext(space, [], space.wrap(""), 0, 0))
>       AttributeError: 'module' object has no attribute 'MatchContext'

[c:\Documents and Settings\YoungB\dist\pypy\module\_sre\test\test_interp_sre.py:55]
_______________________________________________________________________________
_____________________ entrypoint: test_at_beginning_line ______________________

    def test_at_beginning_line(space):
        assert isre.at_beginning_line(space,
E                               isre.MatchContext(space, [], space.wrap(""), 0, 0))
>       AttributeError: 'module' object has no attribute 'MatchContext'

[c:\Documents and Settings\YoungB\dist\pypy\module\_sre\test\test_interp_sre.py:61]
_______________________________________________________________________________
___________________________ entrypoint: test_at_end ___________________________

    def test_at_end(space):
        for string, pos, end in [("", 0, 0), ("a", 1, 1), ("a\n", 1, 2)]:
            assert isre.at_end(space,
E                           isre.MatchContext(space, [], space.wrap(string), pos, end))
>           AttributeError: 'module' object has no attribute 'MatchContext'

[c:\Documents and Settings\YoungB\dist\pypy\module\_sre\test\test_interp_sre.py:70]
_______________________________________________________________________________
________________________ entrypoint: test_at_boundary _________________________

    def test_at_boundary(space):
        for string, pos, end in [("a.", 1, 2), (".a", 1, 2)]:
            assert isre.at_boundary(space,
E                           isre.MatchContext(space, [], space.wrap(string), pos, end))
>           AttributeError: 'module' object has no attribute 'MatchContext'

[c:\Documents and Settings\YoungB\dist\pypy\module\_sre\test\test_interp_sre.py:77]
_______________________________________________________________________________
________________________________ entrypoint:  _________________________________

    from pypy.rpython.test.test_llinterp import interpret
    from pypy.tool.udir import udir 
E   import os, posix
>   ImportError: No module named posix

[c:\Documents and Settings\YoungB\dist\pypy\rpython\module\test\test_posix.py:3]
_______________________________________________________________________________
_____________ entrypoint: TestDocStringInserter().test_mkfilelist _____________

    def setup_method(self, method):
E       self.fd1 = file(this_dir+'/fordocstrings1', 'r')
>       IOError: [Errno 2] No such file or directory: 'c:\\Documents and Settings\\YoungB\\dist\\pypy\\tool\\test/fordocstrings1'

[c:\Documents and Settings\YoungB\dist\pypy\tool\test\test_getdocstrings.py:14]
_______________________________________________________________________________
____________ entrypoint: TestDocStringInserter().test_gottestfile _____________

    def setup_method(self, method):
E       self.fd1 = file(this_dir+'/fordocstrings1', 'r')
>       IOError: [Errno 2] No such file or directory: 'c:\\Documents and Settings\\YoungB\\dist\\pypy\\tool\\test/fordocstrings1'

[c:\Documents and Settings\YoungB\dist\pypy\tool\test\test_getdocstrings.py:14]
_______________________________________________________________________________
__________ entrypoint: TestDocStringInserter().test_compile_typedef ___________

    def setup_method(self, method):
E       self.fd1 = file(this_dir+'/fordocstrings1', 'r')
>       IOError: [Errno 2] No such file or directory: 'c:\\Documents and Settings\\YoungB\\dist\\pypy\\tool\\test/fordocstrings1'

[c:\Documents and Settings\YoungB\dist\pypy\tool\test\test_getdocstrings.py:14]
_______________________________________________________________________________
___________________________ entrypoint: test_boehm ____________________________

    def test_boehm():
        import py
        gw = py.execnet.PopenGateway()
        chan = gw.remote_exec(py.code.Source(test_src))
>       res = chan.receive()

[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_boehm.py:55]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def receive(self):
        """receives an item that was sent from the other side,
        possibly blocking if there is none.
        Note that exceptions from the other side will be
        reraised as channel.RemoteError exceptions containing
        a textual representation of the remote traceback.
        """
        if self._items is None:
            raise IOError("calling receive() on channel with receiver callback")
        x = self._items.get()
        if x is ENDMARKER: 
            self._items.put(x)  # for other receivers 
E           raise self._getremoteerror() or EOFError()
>           RemoteError: Traceback (most recent call last):
              File "<string>", line 506, in thread_executor
              File "", line 46, in ?
              File "", line 43, in run_test
              File "", line 39, in test_malloc_a_lot
              File "", line 26, in getcompiled
              File "c:\Documents and Settings\YoungB\dist\pypy\translator\tool\cbuild.py", line 162, in skip_missing_compiler
                return fn(*args, **kwds)
              File "", line 23, in compile
              File "c:\Documents and Settings\YoungB\dist\pypy\translator\c\genc.py", line 71, in compile
                libraries=self.libraries)
              File "c:\Documents and Settings\YoungB\dist\pypy\translator\tool\cbuild.py", line 104, in compile_c_module
                dist.run_commands()
              File "c:\Python24\lib\distutils\dist.py", line 946, in run_commands
                self.run_command(cmd)
              File "c:\Python24\lib\distutils\dist.py", line 966, in run_command
                cmd_obj.run()
              File "c:\Python24\lib\distutils\command\build_ext.py", line 279, in run
                self.build_extensions()
              File "c:\Python24\lib\distutils\command\build_ext.py", line 405, in build_extensions
                self.build_extension(ext)
              File "c:\Python24\lib\distutils\command\build_ext.py", line 470, in build_extension
                depends=ext.depends)
              File "c:\Python24\lib\distutils\msvccompiler.py", line 376, in compile
                raise CompileError, msg
            CompileError: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2
            

[c:\Documents and Settings\YoungB\dist\py\execnet\channel.py:147]
_______________________________________________________________________________
__________________ entrypoint: test_simple_math_functions[6] __________________

    def math_function_test(funcname):
        import random
        import math
        mathfn = getattr(math, funcname)
        print funcname, 
        def fn(x):
            return mathfn(x)
        f = compile(fn, [float])
        for x in [0.12334, 0.3, 0.5, 0.9883]:
            print x
E           assert (funcname, f(x)) == (funcname, mathfn(x))
>           assert ('exp', 1.349858807576003) == ('exp', 1.3498588075760032)

[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:205]
- - - - - - - - - - - - - -  [6]: recorded stdout - - - - - - - - - - - - - - - 
exp [rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.IOError at 0x00964720>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.MemoryError at 0x00977120>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.OverflowError at 0x00964C90>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ArithmeticError at 0x00964C60>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DEE0B0>, const=<built-in function exp>, methodname='math.exp', s_self=None), SomeFloat()]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.TypeError at 0x009645A0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class thread.error at 0x00B21300>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ValueError at 0x00964DE0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.StandardError at 0x00964570>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ZeroDivisionError at 0x00964CF0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.EnvironmentError at 0x009646C0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.Exception at 0x00964510>)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>), SomeString(can_be_None=False, const='typeptr')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='rtti')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DEE0B0>, const=<built-in function exp>, methodname='math.exp', s_self=None), SomeFloat()]
[rtyper:translating] type [SomeInstance(can_be_None=False, classdef=OSError)]
[rtyper:translating] getitem [SomePtr(const=<* array [ {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...} ]>, ll_ptrtype=<* Array of { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } } >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct <arrayitem> { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } }>), SomeString(can_be_None=False, const='excinst')]
[rtyper:translating] inplace_sub [SomeInteger(nonneg=True, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] ge [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=0, nonneg=True, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, v610686): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function cast_pointer at 0x00DE2D70>, const=<function cast_pointer at 0x00DA07F0>, methodname='pypy.rpython.lltype.cast_pointer', s_self=None), SomePBC(const=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>), SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>), SomeString(can_be_None=False, const='typeptr')]
[rtyper:translating] simple_call [SomePBC(const=<class exceptions.OSError at 0x00964780>), SomeInteger(nonneg=False, unsigned=False), SomePBC(const=None)]
[rtyper:translating] is_true [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)]
[rtyper:translating] getitem [SomePtr(const=<* array [ {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...} ]>, ll_ptrtype=<* Array of { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } } >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct <arrayitem> { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } }>), SomeString(can_be_None=False, const='pycls')]
[rtyper:translating] simple_call [SomePtr(const=<* fn PyErr_GivenExceptionMatches>, ll_ptrtype=<* Func ( * PyObject, * PyObject ) -> Signed>), SomePtr(ll_ptrtype=<* PyObject>), SomePtr(ll_ptrtype=<* PyObject>)]
[rtyper:translating] is_true [SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='parenttypeptr')]
[rtyper:translating] ne [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)]
[rtyper:translating] is_true [SomeBool()]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple2 { item0: Float, item1: Float }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>), SomeString(can_be_None=False, const='item0'), SomeFloat()]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>), SomeString(can_be_None=False, const='item1'), SomeFloat()]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple2 { item0: Float, item1: Signed }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>), SomeString(can_be_None=False, const='item0'), SomeFloat()]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>), SomeString(can_be_None=False, const='item1'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomePBC(const=<function ll_setitem_nonneg__listPtr_Signed_rpy_stringPtr at 0x10C977F0>), SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeInteger(nonneg=False, unsigned=False), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char  }>)]
[rtyper:translating] simple_call [SomePBC(const=<function ll_newlist__listPtrConst_Signed at 0x10C970B0>), SomePBC(const=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] setitem [SomePtr(ll_ptrtype=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >), SomeInteger(nonneg=False, unsigned=False), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char  }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct rpy_string { hash: Signed, chars: Array of Char  }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] getattr [SomePBC(const=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='items'), SomePtr(ll_ptrtype=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item0'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item1'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item2'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item3'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item4'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item5'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item6'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item7'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item8'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item9'), SomeInteger(nonneg=False, unsigned=False)]
0.12334
0.3

- - - - - - - - - - - - - -  [6]: recorded stderr - - - - - - - - - - - - - - - 
[annrpython] (pypy.translator.c.test.test_extfunc:200) fn -> SomeFloat()
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ArithmeticError -> SomeInstance(can_be_None=False, classdef=ArithmeticError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ArithmeticError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StandardError -> SomeInstance(can_be_None=False, classdef=StandardError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StandardError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OverflowError -> SomeInstance(can_be_None=False, classdef=OverflowError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OverflowError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ZeroDivisionError -> SomeInstance(can_be_None=False, classdef=ZeroDivisionError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ZeroDivisionError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_MemoryError -> SomeInstance(can_be_None=False, classdef=MemoryError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_MemoryError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_Exception -> SomeInstance(can_be_None=False, classdef=Exception)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_Exception -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_TypeError -> SomeInstance(can_be_None=False, classdef=TypeError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_TypeError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ValueError -> SomeInstance(can_be_None=False, classdef=ValueError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ValueError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_EnvironmentError -> SomeInstance(can_be_None=False, classdef=EnvironmentError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_EnvironmentError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_error -> SomeInstance(can_be_None=False, classdef=error)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_error -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IOError -> SomeInstance(can_be_None=False, classdef=IOError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IOError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.rclass:695) ll_runtime_type_info__objectPtr -> SomePtr(ll_ptrtype=<* RuntimeTypeInfo (opaque)>)
[annrpython] (pypy.rpython.module.ll_math:2) ll_math_exp__Float -> SomeFloat()
[annrpython] (pypy.rpython.rclass:682) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool(const=True)
[annrpython] (pypy.rpython.rclass:682) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool()
[annrpython] (pypy.rpython.rclass:679) ll_type__objectPtr -> SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:125) ll_pyexcclass2exc__PyObjectPtr -> SomePtr(const=<* struct object { typeptr=... }>, ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:125) ll_pyexcclass2exc__PyObjectPtr -> SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:51) ll_raise_OSError__Signed -> SomeImpossibleValue()
[annrpython] (pypy.rpython.rlist:431) ll_setitem_nonneg__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:83) RPyListOfString_SetItem__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:75) RPyString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char  }>)
[annrpython] (pypy.rpython.rlist:666) ll_newlist__listPtrConst_Signed -> SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>)
[annrpython] (pypy.translator.c.extfunc:80) RPyListOfString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>)
[annrpython] (pypy.rpython.module.ll_math:25) ll_frexp_result__Float_Signed -> SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>)
[annrpython] (pypy.rpython.module.ll_math:51) ll_modf_result__Float_Float -> SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>)
[annrpython] (pypy.rpython.module.ll_os:84) ll_stat_result__Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed -> SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>)

_______________________________________________________________________________
________________________ entrypoint: test_math_errors _________________________

    def test_math_errors():
        import math
        def fn(x):
            return math.log(x)
        f = compile(fn, [float])
        assert f(math.e) == math.log(math.e)
        # this is a platform specific mess
        def check(mathf, f, v):
            try:
                r = mathf(v)
            except (OverflowError, ValueError), e:
                #print mathf, v, e.__class__
                py.test.raises(e.__class__, f, v)
            else:
                if r != r: # nans
                    #print mathf, v, "NAN?", r
                    u = f(v)
                    assert u != u
                else:
                    #print mathf, v, r
                    u = f(v)
                    assert u == r
                    
>       check(math.log, f, -1.0)

[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:234]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def check(mathf, f, v):
        try:
            r = mathf(v)
        except (OverflowError, ValueError), e:
            #print mathf, v, e.__class__
E           py.test.raises(e.__class__, f, v)
>           ExceptionFailure: DID NOT RAISE

[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:223]
- - - - - - - - - - -  test_math_errors: recorded stdout - - - - - - - - - - - 
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.TypeError at 0x009645A0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.OverflowError at 0x00964C90>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.EnvironmentError at 0x009646C0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ArithmeticError at 0x00964C60>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class thread.error at 0x00B21300>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.Exception at 0x00964510>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.StandardError at 0x00964570>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ValueError at 0x00964DE0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ZeroDivisionError at 0x00964CF0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.IOError at 0x00964720>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DE2B30>, const=<function instantiate at 0x00B3FCB0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.MemoryError at 0x00977120>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DE6DF0>, const=<built-in function log>, methodname='math.log', s_self=None), SomeFloat()]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>), SomeString(can_be_None=False, const='typeptr')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='rtti')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DE6DF0>, const=<built-in function log>, methodname='math.log', s_self=None), SomeFloat()]
[rtyper:translating] inplace_sub [SomeInteger(nonneg=True, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] ge [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=0, nonneg=True, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, v625676): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] getitem [SomePtr(const=<* array [ {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...} ]>, ll_ptrtype=<* Array of { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } } >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct <arrayitem> { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } }>), SomeString(can_be_None=False, const='pycls')]
[rtyper:translating] simple_call [SomePtr(const=<* fn PyErr_GivenExceptionMatches>, ll_ptrtype=<* Func ( * PyObject, * PyObject ) -> Signed>), SomePtr(ll_ptrtype=<* PyObject>), SomePtr(ll_ptrtype=<* PyObject>)]
[rtyper:translating] is_true [SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] is_true [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)]
[rtyper:translating] getitem [SomePtr(const=<* array [ {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...} ]>, ll_ptrtype=<* Array of { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } } >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct <arrayitem> { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } } }>), SomeString(can_be_None=False, const='excinst')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='parenttypeptr')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function cast_pointer at 0x00DE2D70>, const=<function cast_pointer at 0x00DA07F0>, methodname='pypy.rpython.lltype.cast_pointer', s_self=None), SomePBC(const=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>), SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>), SomeString(can_be_None=False, const='typeptr')]
[rtyper:translating] ne [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)]
[rtyper:translating] is_true [SomeBool()]
[rtyper:translating] type [SomeInstance(can_be_None=False, classdef=OSError)]
[rtyper:translating] simple_call [SomePBC(const=<class exceptions.OSError at 0x00964780>), SomeInteger(nonneg=False, unsigned=False), SomePBC(const=None)]
[rtyper:translating] simple_call [SomePBC(const=<function ll_setitem_nonneg__listPtr_Signed_rpy_stringPtr at 0x10E329B0>), SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeInteger(nonneg=False, unsigned=False), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char  }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item0'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item1'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item2'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item3'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item4'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item5'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item6'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item7'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item8'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00DE2AF0>, const=<function intmask at 0x00B48830>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item9'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] setitem [SomePtr(ll_ptrtype=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >), SomeInteger(nonneg=False, unsigned=False), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char  }>)]
[rtyper:translating] simple_call [SomePBC(const=<function ll_newlist__listPtrConst_Signed at 0x10E327B0>), SomePBC(const=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct rpy_string { hash: Signed, chars: Array of Char  }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple2 { item0: Float, item1: Signed }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>), SomeString(can_be_None=False, const='item0'), SomeFloat()]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>), SomeString(can_be_None=False, const='item1'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] getattr [SomePBC(const=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>), SomeString(can_be_None=False, const='items'), SomePtr(ll_ptrtype=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  } >)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DE2CB0>, const=<function malloc at 0x00DA0F30>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple2 { item0: Float, item1: Float }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>), SomeString(can_be_None=False, const='item0'), SomeFloat()]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>), SomeString(can_be_None=False, const='item1'), SomeFloat()]

- - - - - - - - - - -  test_math_errors: recorded stderr - - - - - - - - - - - 
[annrpython] (pypy.translator.c.test.test_extfunc:213) fn -> SomeFloat()
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ArithmeticError -> SomeInstance(can_be_None=False, classdef=ArithmeticError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ArithmeticError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StandardError -> SomeInstance(can_be_None=False, classdef=StandardError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StandardError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OverflowError -> SomeInstance(can_be_None=False, classdef=OverflowError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OverflowError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ZeroDivisionError -> SomeInstance(can_be_None=False, classdef=ZeroDivisionError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ZeroDivisionError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_MemoryError -> SomeInstance(can_be_None=False, classdef=MemoryError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_MemoryError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_Exception -> SomeInstance(can_be_None=False, classdef=Exception)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_Exception -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_TypeError -> SomeInstance(can_be_None=False, classdef=TypeError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_TypeError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ValueError -> SomeInstance(can_be_None=False, classdef=ValueError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ValueError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_EnvironmentError -> SomeInstance(can_be_None=False, classdef=EnvironmentError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_EnvironmentError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_error -> SomeInstance(can_be_None=False, classdef=error)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_error -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IOError -> SomeInstance(can_be_None=False, classdef=IOError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IOError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.rclass:695) ll_runtime_type_info__objectPtr -> SomePtr(ll_ptrtype=<* RuntimeTypeInfo (opaque)>)
[annrpython] (pypy.rpython.module.ll_math:2) ll_math_log__Float -> SomeFloat()
[annrpython] (pypy.rpython.rclass:682) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool(const=True)
[annrpython] (pypy.rpython.rclass:682) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool()
[annrpython] (pypy.rpython.rclass:679) ll_type__objectPtr -> SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:125) ll_pyexcclass2exc__PyObjectPtr -> SomePtr(const=<* struct object { typeptr=... }>, ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:125) ll_pyexcclass2exc__PyObjectPtr -> SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func (  ) -> * GcStruct object { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:51) ll_raise_OSError__Signed -> SomeImpossibleValue()
[annrpython] (pypy.rpython.rlist:431) ll_setitem_nonneg__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:83) RPyListOfString_SetItem__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:75) RPyString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char  }>)
[annrpython] (pypy.rpython.rlist:666) ll_newlist__listPtrConst_Signed -> SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>)
[annrpython] (pypy.translator.c.extfunc:80) RPyListOfString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct list { items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char  }  }>)
[annrpython] (pypy.rpython.module.ll_math:25) ll_frexp_result__Float_Signed -> SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>)
[annrpython] (pypy.rpython.module.ll_math:51) ll_modf_result__Float_Float -> SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>)
[annrpython] (pypy.rpython.module.ll_os:84) ll_stat_result__Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed -> SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>)

_______________________________________________________________________________
=== tests finished: 2718 passed, 12 failed, 374 skipped in 1466.03 seconds ====
'spam'
'bar'
'spam'
'bar'
'spam'
'bar'
case: None                             func=None
case: False                            func=False
case: True                             func=True
case: <class 'exceptions.StopIteration'>   func=StopIteration
case: Ellipsis                         func=Ellipsis
case: 42                               func=42
case: 2147483647                       func=sys_dot_maxint
case: -1.25                            func=_minus_1_dot_25
case: -1.25                            func=_minus_1_dot_25__2
case: (2+5j)                           func=2_plus_5j
case: (2+5j)                           func=2_plus_5j__2
case: 42                               func=42L
case: -1234567890123456789012345678901234567890   func=_minus_1234567890123456789012345678901234567890L
case: hello                            func=hello_____not_interned
case: hello                            func=_Quote_hello_Quote_
case: ()                               func=_brace__ecarb_
case: (1, 2)                           func=_brace_1_comma__2_ecarb_
case: []                               func=_list__tsil_
case: [3, 4]                           func=_list_3_comma__4_tsil_
case: {}                               func=_dict__tcid_
case: {5: 6, 7: 8}                     func=_dict_5_colon__6_comma__7_colon__8_tcid_
case: <code object at 0x2e10ed0>       func=func_dot_func_code
case: <code object at 0x2e10090>       func=scopefunc_dot_func_code
case: hello                            func=u_quote_hello_quote_
case: hello                            func=buffer_brace_hello_ecarb_
case: u n i c o d e ,   t o o          func=buffer_brace_u_quote_unicode_comma__too_quote__ecarb_
case: set([])                          func=set_brace__ecarb_
case: set([1, 2])                      func=set_brace__list_1_comma__2_tsil__ecarb_
case: frozenset([])                    func=frozenset_brace__ecarb_
case: frozenset([4, 3])                func=frozenset_brace__list_3_comma__4_tsil__ecarb_
import workx
import workx
Pystone(1.1) time for 25 passes = 1.65598
This machine benchmarks at 15.0968 pystones/second


More information about the pypy-dev mailing list