[pypy-commit] pypy default: Fix for translating a sandbox

arigo noreply at buildbot.pypy.org
Tue Apr 30 11:25:42 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r63767:5af6563cf284
Date: 2013-04-30 11:28 +0200
http://bitbucket.org/pypy/pypy/changeset/5af6563cf284/

Log:	Fix for translating a sandbox

diff --git a/rpython/rlib/types.py b/rpython/rlib/types.py
--- a/rpython/rlib/types.py
+++ b/rpython/rlib/types.py
@@ -7,6 +7,10 @@
     return model.s_None
 
 
+def impossible():
+    return model.s_ImpossibleValue
+
+
 def float():
     return model.SomeFloat()
 
diff --git a/rpython/translator/sandbox/rsandbox.py b/rpython/translator/sandbox/rsandbox.py
--- a/rpython/translator/sandbox/rsandbox.py
+++ b/rpython/translator/sandbox/rsandbox.py
@@ -100,7 +100,7 @@
     else:            raise RuntimeError
 
 
- at signature(types.str(), returns=types.none())
+ at signature(types.str(), returns=types.impossible())
 def not_implemented_stub(msg):
     STDERR = 2
     buf = rffi.str2charp(msg + '\n')


More information about the pypy-commit mailing list