Commits

Barry Warsaw committed 3f6d858 Draft

Patch for PR#139, given by Finn Bock.

  • Participants
  • Parent commits b52997f

Comments (0)

Files changed (1)

File org/python/core/PyDictionary.java

     }
 
     public void __delitem__(PyObject key) throws PyException {
-        table.remove(key);
+        Object ret = table.remove(key);
+        if (ret == null) throw Py.KeyError(key.toString());
     }
 
     public String toString() {