Author: Ronan Lamy <[email protected]>
Branch: None-consistency
Changeset: r71887:d4de40e2c467
Date: 2014-06-03 01:18 +0100
http://bitbucket.org/pypy/pypy/changeset/d4de40e2c467/

Log:    make getattr(None, ...) an annotator error

diff --git a/rpython/annotator/unaryop.py b/rpython/annotator/unaryop.py
--- a/rpython/annotator/unaryop.py
+++ b/rpython/annotator/unaryop.py
@@ -760,10 +760,6 @@
     def bind_callables_under(self, classdef, name):
         return self
 
-    def getattr(self, s_attr):
-        return s_ImpossibleValue
-    getattr.can_only_throw = []
-
     def setattr(self, s_attr, s_value):
         return None
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to