[pypy-svn] r35734 - pypy/dist/pypy/rpython

pedronis at codespeak.net pedronis at codespeak.net
Thu Dec 14 13:59:06 CET 2006


Author: pedronis
Date: Thu Dec 14 13:59:04 2006
New Revision: 35734

Modified:
   pypy/dist/pypy/rpython/rstr.py
Log:
check (with assert) that nobody tries float(None)




Modified: pypy/dist/pypy/rpython/rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/rstr.py	(original)
+++ pypy/dist/pypy/rpython/rstr.py	Thu Dec 14 13:59:04 2006
@@ -610,6 +610,7 @@
         from pypy.rpython.annlowlevel import hlstr
         from pypy.rlib.rarithmetic import break_up_float, parts_to_float
         s = hlstr(ll_str)
+        assert s is not None
 
         n = len(s)
         beg = 0



More information about the Pypy-commit mailing list