[pypy-commit] pypy remove-dict-smm: The name of _negator must be unique for each generated function.

Manuel Jacob noreply at buildbot.pypy.org
Thu May 16 15:12:10 CEST 2013


Author: Manuel Jacob
Branch: remove-dict-smm
Changeset: r64228:6db232eb496a
Date: 2013-05-16 15:10 +0200
http://bitbucket.org/pypy/pypy/changeset/6db232eb496a/

Log:	The name of _negator must be unique for each generated function.

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
@@ -383,6 +383,7 @@
             return space.w_True
         else:
             return space.w_False
+    _negator.func_name = 'negate-%s' % f
     return _negator
 
 W_DictMultiObject.typedef = StdTypeDef("dict",


More information about the pypy-commit mailing list