[pypy-commit] pypy kill-someobject: A bunch more.
arigo
noreply at buildbot.pypy.org
Sun Oct 7 16:31:48 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: kill-someobject
Changeset: r57817:03894bc023c5
Date: 2012-10-07 16:31 +0200
http://bitbucket.org/pypy/pypy/changeset/03894bc023c5/
Log: A bunch more.
diff --git a/pypy/rpython/exceptiondata.py b/pypy/rpython/exceptiondata.py
--- a/pypy/rpython/exceptiondata.py
+++ b/pypy/rpython/exceptiondata.py
@@ -59,6 +59,16 @@
raise ValueError
if classname == 'ZeroDivisionError':
raise ZeroDivisionError
+ if classname == 'MemoryError':
+ raise MemoryError
+ if classname == 'IOError':
+ raise IOError
+ if classname == 'StopIteration':
+ raise StopIteration
+ if classname == 'KeyError':
+ raise KeyError
+ if classname == 'IndexError':
+ raise IndexError
raise NotImplementedError # we did not special-case this so far
helper_fn = rtyper.annotate_helper_fn(ll_raise_noarg, [annmodel.SomeString()])
return helper_fn
More information about the pypy-commit
mailing list