[pypy-svn] r28417 - pypy/dist/pypy/rpython/ootypesystem
antocuni at codespeak.net
antocuni at codespeak.net
Wed Jun 7 10:40:05 CEST 2006
Author: antocuni
Date: Wed Jun 7 10:40:04 2006
New Revision: 28417
Modified:
pypy/dist/pypy/rpython/ootypesystem/rdict.py
Log:
Fixed a bug in ootypesystem rdict.
Modified: pypy/dist/pypy/rpython/ootypesystem/rdict.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rdict.py (original)
+++ pypy/dist/pypy/rpython/ootypesystem/rdict.py Wed Jun 7 10:40:04 2006
@@ -214,6 +214,8 @@
def rtype_setitem((r_dict, r_key), hop):
v_dict, v_key, v_value = hop.inputargs(r_dict, r_dict.key_repr, r_dict.value_repr)
+ if not r_dict.custom_eq_hash:
+ hop.exception_cannot_occur() # XXX: maybe should we move this inside send_message?
return r_dict.send_message(hop, 'll_set', can_raise=r_dict.custom_eq_hash)
def rtype_contains((r_dict, r_key), hop):
More information about the Pypy-commit
mailing list