[pypy-commit] pypy anntype2: Fix issue with generalizing None[i] to container[i]

rlamy noreply at buildbot.pypy.org
Fri Nov 27 08:57:39 EST 2015


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: anntype2
Changeset: r81001:eeb513e3c5a1
Date: 2015-11-27 13:57 +0000
http://bitbucket.org/pypy/pypy/changeset/eeb513e3c5a1/

Log:	Fix issue with generalizing None[i] to container[i]

diff --git a/rpython/annotator/binaryop.py b/rpython/annotator/binaryop.py
--- a/rpython/annotator/binaryop.py
+++ b/rpython/annotator/binaryop.py
@@ -782,6 +782,7 @@
 class __extend__(pairtype(SomeNone, SomeObject)):
     def getitem((none, o)):
         return s_ImpossibleValue
+    getitem.can_only_throw = []
 
     def setitem((none, o), s_value):
         return None


More information about the pypy-commit mailing list