What can I use then ? I need the address of the function ?
[translation:ERROR] Exception: cannot use id() in RPython; see 
objectmodel.compute_xxx()Processing block: block@19 is a <class 
'rpython.flowspace.flowcontext.SpamBlock'>  in 
(pypy.module._vtune.interp_vtune:28)_get_full_name  containing the following 
operations:        buf_0 = simple_call((type RStringIO))        v943 = 
getattr(buf_0, ('write'))        v944 = getattr(pycode_0, ('co_code'))        
v945 = simple_call(v943, v944)        v946 = getattr(buf_0, ('getsize'))        
size_code_0 = simple_call(v946)        v947 = getattr(pycode_0, ('co_name'))    
    id_func_0 = id(v947)        v948 = getattr(pycode_0, ('co_name'))        
v949 = simple_call((function _safe), v948)        v950 = getattr(pycode_0, 
('co_firstlineno'))        v951 = getattr(pycode_0, ('co_filename'))        
v952 = simple_call((function _safe), v951)        v953 = newtuple(v949, v950, 
v952, size_code_0, id_func_0)        v954 = mod(('vtune:%s:%d:%s:%d:%d'), v953) 
 --end--[translation] start debugger...> 
/opt/shubha_vtune_pypy/rpython/annotator/unaryop.py(188)id()-> raise 
Exception("cannot use id() in RPython; "(Pdb+) 
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to