1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 619ceb5 Merge

merge heads

  • Participants
  • Parent commits f21ab1e, 0e2f0d9
  • Branches default

Comments (0)

Files changed (2)

File rpython/rtyper/rpbc.py

View file
  • Ignore whitespace
     def ll_str(self, none):
         return llstr("None")
 
+    def get_ll_eq_function(self):
+        return None
+
     def get_ll_hash_function(self):
         return ll_none_hash
 

File rpython/rtyper/test/test_rdict.py

View file
  • Ignore whitespace
         finally:
             lltype._array._check_range = original_check_range
 
+    def test_dict_with_none_key(self):
+        def func(i):
+            d = {None: i}
+            return d[None]
+        res = self.interpret(func, [42])
+        assert res == 42
+
 
 class TestStress: