[pypy-dev] Current failures
Ben.Young at risk.sungard.com
Ben.Young at risk.sungard.com
Wed Sep 7 16:51:12 CEST 2005
Hi PyPy'rs,
Thought I had better let you know about my current test failures, as these
tests appear to have been failing for about a week or more. Here's the
log:
Two of the failures appear to be windows math functions doing something
slightly different to the CPython equivs. The last two failures are link
errors which is weird, as you would think the same would be happening on
Linux?
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[62] s.............................................................
doc\architecture.txt[11] s..........
doc\coding-guide.txt[7] s......
doc\contact.txt[2] s.
doc\contributor.txt[2] s.
doc\extradoc.txt[2] s.
doc\faq.txt[4] s...
doc\garbage_collection.txt[4] s...
doc\getting-started.txt[14] s.............
doc\index.txt[33] 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\release-0.7.0.txt[2] s.
doc\svn-help.txt[3] s..
doc\theory.txt[6] s.....
doc\translation.txt[10] s.........
interpreter\pyparser\test\test_astbuilder.py[?].....................................................................................................................................................................................................................................................................................................
interpreter\pyparser\test\test_astcompiler.py[236] ............................................................................................................................................................................................................................................
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[48] ...........................................sssss
interpreter\test\test_descrtypecheck.py[2] ..
interpreter\test\test_eval.py[2] ..
interpreter\test\test_exceptcomp.py[11] ...........
interpreter\test\test_exec.py[21] .....................
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_syntax.py[39] .......................................
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[44] ............................................
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[18] ..................
module\_sre\test\test_app_sre.py[101] sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
module\_sre\test\test_interp_sre.py[11] ...........
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[7] .......
module\posix\test\test_posix_libfile.py[2] ..
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] .
module\thread\test\test_local.py[3] ...
module\thread\test\test_lock.py[1] .
module\thread\test\test_thread.py[6] ......
module\time\test\test_time.py[3] ...
module\unicodedata\test\test_unicodedata.py[2] .s
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[41] .........................................
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[8] ........
objspace\test\test_thunkobjspace.py[6] ......
objspace\test\test_traceobjspace.py[5] .....
rpython\memory\test\test_address.py[30] ..............................
rpython\memory\test\test_convertlltype.py[11] ...........
rpython\memory\test\test_gc.py[24] ........................
rpython\memory\test\test_llinterpsim.py[28] ............................
rpython\memory\test\test_lltypesimulation.py[19] ...................
rpython\memory\test\test_simulator.py[8] ........
rpython\memory\test\test_support.py[2] ..
rpython\module\test\test_ll_math.py[8] ........
rpython\module\test\test_ll_os.py[6] ......
rpython\module\test\test_ll_os_path.py[4] ....
rpython\module\test\test_ll_strtod.py[2] ..
rpython\module\test\test_posix.py[9] .........
rpython\test\test_exception.py[3] ...
rpython\test\test_llann.py[14] ..............
rpython\test\test_llinterp.py[27] ...........................
rpython\test\test_lltype.py[24] ........................
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[19] ...................
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[34] ..................................
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_new_count.py[6] ssssss
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] ...
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[45] .............................................
translator\c\test\test_boehm.py[1] s
translator\c\test\test_database.py[17] .................
translator\c\test\test_exception.py[5] .....
translator\c\test\test_extfunc.py[94] ....................................................s...............F.........F.............FF
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_170.c
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(138) : 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(176) : warning C4013: 'getcwd' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(176) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int'
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(185) : warning C4013: 'chdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(192) : warning C4013: 'mkdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(199) : 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[44] ............................................
translator\llvm\test\test_class.py[16] ssssssssssssssss
translator\llvm\test\test_exc_operation.py[15] sssssssssssssss
translator\llvm\test\test_exception.py[12] ssssssssssss
translator\llvm\test\test_extfunc.py[37] sssssssssssssssssssssssssssssssssssss
translator\llvm\test\test_gc.py[1] s
translator\llvm\test\test_genllvm.py[33] sssssssssssssssssssssssssssssssss
translator\llvm\test\test_genllvm1.py[14] ssssssssssssss
translator\llvm\test\test_lltype.py[16] ssssssssssssssss
translator\llvm\test\test_seq.py[19] sssssssssssssssssss
translator\llvm\test\test_snippet.py[17] sssssssssssssssss
translator\llvm\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[121] .........................................................................................................................
translator\test\test_annsimplify2.py[1] .
translator\test\test_annsimplifyrpython.py[121] .........................................................................................................................
translator\test\test_backendoptimization.py[8] ........
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\test\test_unsimplify.py[3] ...
translator\tool\test\test_cbuild.py[1] test.c
.
__________________________ reasons for skipped tests __________________________
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_boehm.py:53
reason: Skipped: boehm test is fragile wrt. the number of dynamically loaded libs
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:129
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:76
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:116
reason: Skipped: ovf operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\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\llvm\test\test_exc_operation.py:93
reason: Skipped: val operator exception not implemented
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\tool\pytest\appsupport.py:182
reason: Skipped: requires a 'wide' python build.
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:88
reason: Skipped: this os has no ftruncate :-(
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:81
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:87
reason: Skipped: ovf_zer operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\runtest.py:23
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\tool\pytest\test\test_new_count.py:10
reason: Skipped: does not work on python 2.4 and greater currently
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:98
reason: Skipped: ovf_val operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:142
reason: Skipped: shift operator exception not implemented
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\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\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\tool\pytest\appsupport.py:182
reason: Skipped: Reference counting is not implemented.
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\interpreter\pyparser\test\test_astbuilder.py:618
reason: Skipped: too ambitious for now (and time consuming)
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\llvm\test\test_exc_operation.py:104
reason: Skipped: zer operator exception not implemented
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\pypy\interpreter\test\test_compiler.py:174
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_compiler.py:171
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_compiler.py:183
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_compiler.py:180
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_compiler.py:177
reason: Skipped: INPROGESS
Skipped in c:\Documents and Settings\YoungB\dist\py\documentation\conftest.py:21
reason: Skipped: docutils not importable
_______________________________________________________________________________
__________________ 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:206]
- - - - - - - - - - - - - - [6]: recorded stdout - - - - - - - - - - - - - - -
exp [rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class thread.error at 0x00B24D20>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.StandardError at 0x00964570>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DF0C70>, const=<built-in function exp>, methodname='math.exp', s_self=None), SomeFloat()]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.Exception at 0x00964510>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DF0C70>, const=<built-in function exp>, methodname='math.exp', 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 cast_pointer at 0x00DED8F0>, const=<function cast_pointer at 0x00DA41B0>, 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] type [SomeInstance(can_be_None=False, classdef=OSError)]
[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] 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, v813620): 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='excinst')]
[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] simple_call [SomePBC(const=<class exceptions.OSError at 0x00964780>), SomeInteger(nonneg=False, unsigned=False), SomePBC(const=None)]
[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] 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] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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] simple_call [SomePBC(const=<function ll_newlist__listPtrConst_Signed at 0x13C79F30>), SomePBC(const=<* GcStruct list { length: Signed, 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 { length: Signed, 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] getattr [SomePBC(const=<* GcStruct list { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, 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 { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 { length: Signed, 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 [SomePBC(const=<function ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr at 0x13C79470>), SomePBC(const=<function dum_nocheck at 0x03DCC770>), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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()]
0.12334
0.3
- - - - - - - - - - - - - - [6]: recorded stderr - - - - - - - - - - - - - - -
[annrpython] (pypy.translator.c.test.test_extfunc:201) 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_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_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_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:699) 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:686) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool(const=True)
[annrpython] (pypy.rpython.rclass:686) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool()
[annrpython] (pypy.rpython.rclass:683) 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:508) ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:93) _RPyListOfString_SetItem__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:78) RPyString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>)
[annrpython] (pypy.rpython.rlist:758) ll_newlist__listPtrConst_Signed -> SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)
[annrpython] (pypy.translator.c.extfunc:90) _RPyListOfString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, 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:235]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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:224]
- - - - - - - - - - - test_math_errors: recorded stdout - - - - - - - - - - -
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class thread.error at 0x00B24D20>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.IOError at 0x00964720>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function annotation at 0x00DF09F0>, const=<built-in function log>, methodname='math.log', s_self=None), SomeFloat()]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ArithmeticError at 0x00964C60>)]
[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 0x00DF09F0>, const=<built-in function log>, methodname='math.log', s_self=None), SomeFloat()]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function cast_pointer at 0x00DED8F0>, const=<function cast_pointer at 0x00DA41B0>, 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] 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] 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] 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, v829420): 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='excinst')]
[rtyper:translating] simple_call [SomePBC(const=<class exceptions.OSError at 0x00964780>), SomeInteger(nonneg=False, unsigned=False), SomePBC(const=None)]
[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 [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 [SomePBC(const=<* GcStruct list { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, 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 { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 { length: Signed, 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 [SomePBC(const=<function ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr at 0x13E39630>), SomePBC(const=<function dum_nocheck at 0x03DCC770>), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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_newlist__listPtrConst_Signed at 0x13E4F0B0>), SomePBC(const=<* GcStruct list { length: Signed, 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 { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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:214) 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_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_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_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:699) 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:686) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool(const=True)
[annrpython] (pypy.rpython.rclass:686) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool()
[annrpython] (pypy.rpython.rclass:683) 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:508) ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:93) _RPyListOfString_SetItem__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:78) RPyString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>)
[annrpython] (pypy.rpython.rlist:758) ll_newlist__listPtrConst_Signed -> SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)
[annrpython] (pypy.translator.c.extfunc:90) _RPyListOfString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, 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_environ ___________________________
def test_environ():
import py
gw = py.execnet.PopenGateway()
chan = gw.remote_exec(py.code.Source(test_src))
res = chan.receive()
E assert res
> assert False
[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:478]
_______________________________________________________________________________
__________________________ entrypoint: test_unsetenv __________________________
def test_unsetenv():
if not hasattr(os, "unsetenv"):
py.test.skip("missing unsetenv on this architecture")
def unsetenv():
os.unsetenv("ABCDEF")
> f = compile(unsetenv, [])
[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:486]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def compile(fn, argtypes, view=False):
t = Translator(fn)
t.annotate(argtypes)
t.specialize()
if view:
t.view()
t.backend_optimizations()
db = LowLevelDatabase(t)
entrypoint = db.get(pyobjectptr(fn))
db.complete()
> module = compile_db(db)
[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_genc.py:39]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def compile_db(db):
enable_fast_compilation() # for testing
modulename = uniquemodulename('testing')
targetdir = udir.join(modulename).ensure(dir=1)
gen_source(db, modulename, str(targetdir), defines={'COUNT_OP_MALLOCS': 1})
m = make_module_from_c(targetdir.join(modulename+'.c'),
> include_dirs = [os.path.dirname(autopath.this_dir)])
[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_genc.py:26]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_module_from_c(cfile, include_dirs=None):
cfile = py.path.local(cfile)
modname = cfile.purebasename
> compile_c_module(cfile, modname, include_dirs)
[c:\Documents and Settings\YoungB\dist\pypy\translator\tool\cbuild.py:127]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def compile_c_module(cfile, modname, include_dirs=None, libraries=[]):
#try:
# from distutils.log import set_threshold
# set_threshold(10000)
#except ImportError:
# print "ERROR IMPORTING"
# pass
if include_dirs is None:
include_dirs = []
dirpath = cfile.dirpath()
lastdir = dirpath.chdir()
try:
if debug: print "modname", modname
c = stdoutcapture.Capture(mixed_out_err = True)
try:
try:
if compiler_command():
# GCC-ish options only
from distutils import sysconfig
gcv = sysconfig.get_config_vars()
cmd = compiler_command().replace('%s',
str(dirpath.join(modname)))
for dir in [gcv['INCLUDEPY']] + list(include_dirs):
cmd += ' -I%s' % dir
os.system(cmd)
else:
from distutils.dist import Distribution
from distutils.extension import Extension
from distutils.ccompiler import get_default_compiler
saved_environ = os.environ.items()
try:
# distutils.core.setup() is really meant for end-user
# interactive usage, because it eats most exceptions and
# turn them into SystemExits. Instead, we directly
# instantiate a Distribution, which also allows us to
# ignore unwanted features like config files.
extra_compile_args = []
if get_default_compiler() == 'unix':
old_version = False
try:
g = os.popen('gcc --version', 'r')
verinfo = g.read()
g.close()
except (OSError, IOError):
pass
else:
old_version = verinfo.startswith('2')
if not old_version:
extra_compile_args.extend(["-Wno-unused-label",
"-Wno-unused-variable"])
attrs = {
'name': "testmodule",
'ext_modules': [
Extension(modname, [str(cfile)],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args,
libraries=libraries,)
],
'script_name': 'setup.py',
'script_args': ['-q', 'build_ext', '--inplace'],
}
dist = Distribution(attrs)
if not dist.parse_command_line():
raise ValueError, "distutils cmdline parse error"
> dist.run_commands()
[c:\Documents and Settings\YoungB\dist\pypy\translator\tool\cbuild.py:104]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def run_commands (self):
"""Run each command that was seen on the setup script command line.
Uses the list of commands found and cache of command objects
created by 'get_command_obj()'.
"""
for cmd in self.commands:
> self.run_command(cmd)
[c:\Python24\lib\distutils\dist.py:946]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def run_command (self, command):
"""Do whatever it takes to run a command (including nothing at all,
if the command has already been run). Specifically: if we have
already created and run the command named by 'command', return
silently without doing anything. If the command named by 'command'
doesn't even have a command object yet, create one. Then invoke
'run()' on that command object (or an existing one).
"""
# Already been here, done that? then return silently.
if self.have_run.get(command):
return
log.info("running %s", command)
cmd_obj = self.get_command_obj(command)
cmd_obj.ensure_finalized()
> cmd_obj.run()
[c:\Python24\lib\distutils\dist.py:966]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def run (self):
from distutils.ccompiler import new_compiler
# 'self.extensions', as supplied by setup.py, is a list of
# Extension instances. See the documentation for Extension (in
# distutils.extension) for details.
#
# For backwards compatibility with Distutils 0.8.2 and earlier, we
# also allow the 'extensions' list to be a list of tuples:
# (ext_name, build_info)
# where build_info is a dictionary containing everything that
# Extension instances do except the name, with a few things being
# differently named. We convert these 2-tuples to Extension
# instances as needed.
if not self.extensions:
return
# If we were asked to build any C/C++ libraries, make sure that the
# directory where we put them is in the library search path for
# linking extensions.
if self.distribution.has_c_libraries():
build_clib = self.get_finalized_command('build_clib')
self.libraries.extend(build_clib.get_library_names() or [])
self.library_dirs.append(build_clib.build_clib)
# Setup the CCompiler object that we'll use to do all the
# compiling and linking
self.compiler = new_compiler(compiler=self.compiler,
verbose=self.verbose,
dry_run=self.dry_run,
force=self.force)
customize_compiler(self.compiler)
# And make sure that any compile/link-related options (which might
# come from the command-line or from the setup script) are set in
# that CCompiler object -- that way, they automatically apply to
# all compiling and linking done here.
if self.include_dirs is not None:
self.compiler.set_include_dirs(self.include_dirs)
if self.define is not None:
# 'define' option is a list of (name,value) tuples
for (name,value) in self.define:
self.compiler.define_macro(name, value)
if self.undef is not None:
for macro in self.undef:
self.compiler.undefine_macro(macro)
if self.libraries is not None:
self.compiler.set_libraries(self.libraries)
if self.library_dirs is not None:
self.compiler.set_library_dirs(self.library_dirs)
if self.rpath is not None:
self.compiler.set_runtime_library_dirs(self.rpath)
if self.link_objects is not None:
self.compiler.set_link_objects(self.link_objects)
# Now actually compile and link everything.
> self.build_extensions()
[c:\Python24\lib\distutils\command\build_ext.py:279]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def build_extensions(self):
# First, sanity-check the 'extensions' list
self.check_extensions_list(self.extensions)
for ext in self.extensions:
> self.build_extension(ext)
[c:\Python24\lib\distutils\command\build_ext.py:405]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def build_extension(self, ext):
sources = ext.sources
if sources is None or type(sources) not in (ListType, TupleType):
raise DistutilsSetupError, \
("in 'ext_modules' option (extension '%s'), " +
"'sources' must be present and must be " +
"a list of source filenames") % ext.name
sources = list(sources)
fullname = self.get_ext_fullname(ext.name)
if self.inplace:
# ignore build-lib -- put the compiled extension into
# the source tree along with pure Python modules
modpath = string.split(fullname, '.')
package = string.join(modpath[0:-1], '.')
base = modpath[-1]
build_py = self.get_finalized_command('build_py')
package_dir = build_py.get_package_dir(package)
ext_filename = os.path.join(package_dir,
self.get_ext_filename(base))
else:
ext_filename = os.path.join(self.build_lib,
self.get_ext_filename(fullname))
depends = sources + ext.depends
if not (self.force or newer_group(depends, ext_filename, 'newer')):
log.debug("skipping '%s' extension (up-to-date)", ext.name)
return
else:
log.info("building '%s' extension", ext.name)
# First, scan the sources for SWIG definition files (.i), run
# SWIG on 'em to create .c files, and modify the sources list
# accordingly.
sources = self.swig_sources(sources, ext)
# Next, compile the source code to object files.
# XXX not honouring 'define_macros' or 'undef_macros' -- the
# CCompiler API needs to change to accommodate this, and I
# want to do one thing at a time!
# Two possible sources for extra compiler arguments:
# - 'extra_compile_args' in Extension object
# - CFLAGS environment variable (not particularly
# elegant, but people seem to expect it and I
# guess it's useful)
# The environment variable should take precedence, and
# any sensible compiler will give precedence to later
# command line args. Hence we combine them in order:
extra_args = ext.extra_compile_args or []
macros = ext.define_macros[:]
for undef in ext.undef_macros:
macros.append((undef,))
objects = self.compiler.compile(sources,
output_dir=self.build_temp,
macros=macros,
include_dirs=ext.include_dirs,
debug=self.debug,
extra_postargs=extra_args,
depends=ext.depends)
# XXX -- this is a Vile HACK!
#
# The setup.py script for Python on Unix needs to be able to
# get this list so it can perform all the clean up needed to
# avoid keeping object files around when cleaning out a failed
# build of an extension module. Since Distutils does not
# track dependencies, we have to get rid of intermediates to
# ensure all the intermediates will be properly re-built.
#
self._built_objects = objects[:]
# Now link the object files together into a "shared object" --
# of course, first we have to figure out all the other things
# that go into the mix.
if ext.extra_objects:
objects.extend(ext.extra_objects)
extra_args = ext.extra_link_args or []
# Detect target language, if not provided
language = ext.language or self.compiler.detect_language(sources)
self.compiler.link_shared_object(
objects, ext_filename,
libraries=self.get_libraries(ext),
library_dirs=ext.library_dirs,
runtime_library_dirs=ext.runtime_library_dirs,
extra_postargs=extra_args,
export_symbols=self.get_export_symbols(ext),
debug=self.debug,
build_temp=self.build_temp,
> target_lang=language)
[c:\Python24\lib\distutils\command\build_ext.py:502]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def link_shared_object (self,
objects,
output_filename,
output_dir=None,
libraries=None,
library_dirs=None,
runtime_library_dirs=None,
export_symbols=None,
debug=0,
extra_preargs=None,
extra_postargs=None,
build_temp=None,
target_lang=None):
self.link(CCompiler.SHARED_OBJECT, objects,
output_filename, output_dir,
libraries, library_dirs, runtime_library_dirs,
export_symbols, debug,
> extra_preargs, extra_postargs, build_temp, target_lang)
[c:\Python24\lib\distutils\ccompiler.py:847]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def link (self,
target_desc,
objects,
output_filename,
output_dir=None,
libraries=None,
library_dirs=None,
runtime_library_dirs=None,
export_symbols=None,
debug=0,
extra_preargs=None,
extra_postargs=None,
build_temp=None,
target_lang=None):
if not self.initialized: self.initialize()
(objects, output_dir) = self._fix_object_args (objects, output_dir)
(libraries, library_dirs, runtime_library_dirs) = \
self._fix_lib_args (libraries, library_dirs, runtime_library_dirs)
if runtime_library_dirs:
self.warn ("I don't know what to do with 'runtime_library_dirs': "
+ str (runtime_library_dirs))
lib_opts = gen_lib_options (self,
library_dirs, runtime_library_dirs,
libraries)
if output_dir is not None:
output_filename = os.path.join (output_dir, output_filename)
if self._need_link (objects, output_filename):
if target_desc == CCompiler.EXECUTABLE:
if debug:
ldflags = self.ldflags_shared_debug[1:]
else:
ldflags = self.ldflags_shared[1:]
else:
if debug:
ldflags = self.ldflags_shared_debug
else:
ldflags = self.ldflags_shared
export_opts = []
for sym in (export_symbols or []):
export_opts.append("/EXPORT:" + sym)
ld_args = (ldflags + lib_opts + export_opts +
objects + ['/OUT:' + output_filename])
# The MSVC linker generates .lib and .exp files, which cannot be
# suppressed by any linker switches. The .lib files may even be
# needed! Make sure they are generated in the temporary build
# directory. Since they have different names for debug and release
# builds, they can go into the same directory.
if export_symbols is not None:
(dll_name, dll_ext) = os.path.splitext(
os.path.basename(output_filename))
implib_file = os.path.join(
os.path.dirname(objects[0]),
self.library_filename(dll_name))
ld_args.append ('/IMPLIB:' + implib_file)
if extra_preargs:
ld_args[:0] = extra_preargs
if extra_postargs:
ld_args.extend(extra_postargs)
self.mkpath (os.path.dirname (output_filename))
try:
self.spawn ([self.linker] + ld_args)
except DistutilsExecError, msg:
E raise LinkError, msg
> LinkError: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe"' failed with exit status 1120
[c:\Python24\lib\distutils\msvccompiler.py:481]
- - - - - - - - - - - test_unsetenv: recorded stdout - - - - - - - - - - - -
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class thread.error at 0x00B24D20>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.MemoryError at 0x00977120>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function noneannotation at 0x00DF04F0>, const=<function unsetenv at 0x009978F0>, methodname='os.unsetenv', s_self=None), SomeString(can_be_None=False, const='ABCDEF')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, 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 0x00DED6B0>, const=<function instantiate at 0x00B4C1B0>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.StandardError at 0x00964570>)]
[rtyper:translating] simple_call [SomePBC(const=<function from_rstr__rpy_stringPtr at 0x144163B0>), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function noneannotation at 0x00DF04F0>, const=<function unsetenv at 0x009978F0>, methodname='os.unsetenv', s_self=None), SomeString(can_be_None=False)]
[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] getattr [SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>), SomeString(can_be_None=False, const='chars')]
[rtyper:translating] getitem [SomePtr(ll_ptrtype=<* Array of Char >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomeList(listdef=<SomeChar(can_be_None=False)>), SomeString(can_be_None=False, const='append')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<unbound method SomeList.method_append>, methodname='append', s_self=SomeList(listdef=<SomeChar(can_be_None=False)>)), SomeChar(can_be_None=False)]
[rtyper:translating] next [SomeIterator(s_container=SomeList(listdef=<SomeInteger(nonneg=True, unsigned=False)>))]
[rtyper:translating] newlist []
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>), SomeString(can_be_None=False, const='chars')]
[rtyper:translating] len [SomePtr(ll_ptrtype=<* Array of Char >)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function builtin_range at 0x00DED170>, const=<built-in function range>, methodname='__builtin__.range', s_self=None), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] iter [SomeList(listdef=<SomeInteger(nonneg=True, unsigned=False)>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<unbound method SomeString.method_join>, const=<built-in method join of str object at 0x0096A038>, methodname='join', s_self=SomeString(can_be_None=False, const='')), SomeList(listdef=<SomeChar(can_be_None=False)>)]
[rtyper:translating] 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, p_871680): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] getitem [SomePtr(ll_ptrtype=<* GcArray of Char >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] setitem [SomePtr(ll_ptrtype=<* Array of Char >), SomeInteger(nonneg=True, unsigned=False), SomeChar(can_be_None=False)]
[rtyper:translating] inplace_add [SomeInteger(nonneg=True, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] sub [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] lt [SomeInteger(nonneg=True, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, num_chars_872570): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] getitem [SomePtr(ll_ptrtype=<* GcArray of Char >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] setitem [SomePtr(ll_ptrtype=<* GcArray of Char >), SomeInteger(nonneg=True, unsigned=False), SomeChar(can_be_None=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function typeOf at 0x00DED870>, const=<function typeOf at 0x00D9ED70>, methodname='pypy.rpython.lltype.typeOf', s_self=None), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] getattr [SomePBC(const=<* GcArray of Char >), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcArray of Char >), SomeString(can_be_None=False, const='OF')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] len [SomePtr(ll_ptrtype=<* GcArray of Char >)]
[rtyper:translating] ge [SomeInteger(nonneg=True, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(False, newsize_871403): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] lt [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=9, nonneg=True, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(False, newsize_871438): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] rshift [SomeInteger(nonneg=True, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] ge [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, newsize_871444): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 [SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>), SomeString(can_be_None=False, const='chars')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct range { start: Signed, stop: Signed }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct range { start: Signed, stop: Signed }>), SomeString(can_be_None=False, const='start'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct range { start: Signed, stop: Signed }>), SomeString(can_be_None=False, const='stop'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] rshift [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=3, nonneg=True, unsigned=False)]
[rtyper:translating] add [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] add [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] eq [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=0, nonneg=True, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, newsize_871476): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items'), SomePtr(ll_ptrtype=<* GcArray of Char >)]
[rtyper:translating] add [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct range { next: Signed, stop: Signed }>), SomeString(can_be_None=False, const='next'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] inplace_sub [SomeInteger(nonneg=True, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of Char }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] getattr [SomePBC(const=<* GcArray of Char >), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcArray of Char >), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items'), SomePtr(ll_ptrtype=<* GcArray of Char >)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct range { next: Signed, stop: Signed }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct range { next: Signed, stop: Signed }>)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct range { start: Signed, stop: Signed }>), SomeString(can_be_None=False, const='start')]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct range { next: Signed, stop: Signed }>), SomeString(can_be_None=False, const='next'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct range { start: Signed, stop: Signed }>), SomeString(can_be_None=False, const='stop')]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct range { next: Signed, stop: Signed }>), SomeString(can_be_None=False, const='stop'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct range { next: Signed, stop: Signed }>), SomeString(can_be_None=False, const='next')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct range { next: Signed, stop: Signed }>), SomeString(can_be_None=False, const='stop')]
[rtyper:translating] ge [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] is_true [SomeBool()]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='length')]
[rtyper:translating] add [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] simple_call [SomePBC(const=<function _ll_list_resize__listPtr_Signed at 0x14416AF0>), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] setitem [SomePtr(ll_ptrtype=<* GcArray of Char >), SomeInteger(nonneg=False, unsigned=False), SomeChar(can_be_None=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function typeOf at 0x00DED870>, const=<function typeOf at 0x00D9ED70>, methodname='pypy.rpython.lltype.typeOf', s_self=None), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of Char }>)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of Char }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] getattr [SomePBC(const=<* GcArray of Char >), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcArray of Char >), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] lt [SomeInteger(nonneg=True, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, new_allocated_871544): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] simple_call [SomePBC(const=<class exceptions.StopIteration at 0x00964540>)]
[rtyper:translating] type [SomeInstance(can_be_None=False, classdef=StopIteration)]
[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=...}, {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] type [SomeInstance(can_be_None=False, classdef=OSError)]
[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] 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, v872958): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] simple_call [SomePBC(const=<class exceptions.OSError at 0x00964780>), SomeInteger(nonneg=False, unsigned=False), SomePBC(const=None)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function cast_pointer at 0x00DED8F0>, const=<function cast_pointer at 0x00DA41B0>, 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] 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=...}, {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] 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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 0x00DED670>, const=<function intmask at 0x00B4ECF0>, 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] simple_call [SomePBC(const=<function ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr at 0x1444B370>), SomePBC(const=<function dum_nocheck at 0x03DCC770>), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, 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] getattr [SomePBC(const=<* GcStruct list { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, 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 { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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 { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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] getattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, 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 0x1448B430>), SomePBC(const=<* GcStruct list { length: Signed, 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 0x00DED830>, const=<function malloc at 0x00DA48F0>, 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)]
testing_122.c
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(138) : 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(176) : warning C4013: 'getcwd' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(176) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int'
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(185) : warning C4013: 'chdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(192) : warning C4013: 'mkdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(199) : warning C4013: 'rmdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\Local Settings\Temp\usession-72\testing_122\testing_122.c(603) : warning C4013: 'pypy_g_ll_os_unsetenv__rpy_stringPtr' undefined; assuming extern returning int
Creating library c:\docume~1\youngb\locals~1\temp\usession-72\testing_122\testing_122.lib and object c:\docume~1\youngb\locals~1\temp\usession-72\testing_122\testing_122.exp
testing_122.obj : error LNK2019: unresolved external symbol _pypy_g_ll_os_unsetenv__rpy_stringPtr referenced in function _pypy_g_unsetenv
testing_122.pyd : fatal error LNK1120: 1 unresolved externals
- - - - - - - - - - - test_unsetenv: recorded stderr - - - - - - - - - - - -
[annrpython] (pypy.translator.c.test.test_extfunc:484) unsetenv -> SomePBC(const=None)
[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_error -> SomeInstance(can_be_None=False, classdef=error)
[annrpython] (pypy.rpyth