Author: Ronan Lamy <[email protected]>
Branch: var-in-Some
Changeset: r71576:4757c82f9805
Date: 2014-05-19 01:30 +0100
http://bitbucket.org/pypy/pypy/changeset/4757c82f9805/
Log: fix contains_SomeDict.can_only_throw
diff --git a/rpython/annotator/unaryop.py b/rpython/annotator/unaryop.py
--- a/rpython/annotator/unaryop.py
+++ b/rpython/annotator/unaryop.py
@@ -333,12 +333,12 @@
getattr(s_stop, 'const', 0) != -1:
raise AnnotatorError("%s: not proven to have non-negative stop" %
error)
-def _can_only_throw(dct, *ignore):
- if dct.ann.dictdef.dictkey.custom_eq_hash:
+
+def _can_only_throw(s_dct, *ignore):
+ if s_dct.dictdef.dictkey.custom_eq_hash:
return None # r_dict: can throw anything
return [] # else: no possible exception
-
@op.contains.register(SomeDict)
def contains_SomeDict(dct, element):
dct.ann.dictdef.generalize_key(element.ann)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit