Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r57770:9184d8149ca0
Date: 2012-10-03 12:16 +0200
http://bitbucket.org/pypy/pypy/changeset/9184d8149ca0/

Log:    don't override the default 'ne' multimethod

diff --git a/pypy/objspace/std/dictmultiobject.py 
b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -982,6 +982,7 @@
 eq__DictViewItems_settypedef = eq__DictViewItems_DictViewItems
 eq__DictViewItems_frozensettypedef = eq__DictViewItems_DictViewItems
 
+
 def repr__DictViewKeys(space, w_dictview):
     w_seq = space.call_function(space.w_list, w_dictview)
     w_repr = space.repr(w_seq)
@@ -1017,7 +1018,7 @@
         exec src.compile() in globals()
 
 
-    for opname in ['lt', 'le', 'ne', 'ge', 'gt']:
+    for opname in ['lt', 'le', 'ge', 'gt']:
         src = py.code.Source("""
         def {opname}__DictViewKeys_ANY(space, w_dictview, w_other):
             w_left = space.call_function(space.w_set, w_dictview)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to