[pypy-svn] r16495 - pypy/dist/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Thu Aug 25 16:07:15 CEST 2005
Author: arigo
Date: Thu Aug 25 16:07:14 2005
New Revision: 16495
Modified:
pypy/dist/pypy/rpython/rstr.py
Log:
Decidedly missing some hop.exception_cannot_occur(); the general rule is that
it is needed in the rtype_*() implementation of any operation that the flow
space and the annotator think can raise an exception, but the rtyper knows
that it cannot. (Here, the string '%'.)
Modified: pypy/dist/pypy/rpython/rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/rstr.py (original)
+++ pypy/dist/pypy/rpython/rstr.py Thu Aug 25 16:07:14 2005
@@ -361,6 +361,7 @@
i = inputconst(Signed, i)
hop.genop('setarrayitem', [vtemp, i, vchunk])
+ hop.exception_cannot_occur() # to ignore the ZeroDivisionError of '%'
return hop.gendirectcall(ll_join_strs, vtemp)
More information about the Pypy-commit
mailing list