[pypy-svn] r58759 - pypy/dist/pypy/objspace/std

xoraxax at codespeak.net xoraxax at codespeak.net
Tue Oct 7 16:17:19 CEST 2008


Author: xoraxax
Date: Tue Oct  7 16:17:18 2008
New Revision: 58759

Modified:
   pypy/dist/pypy/objspace/std/multimethod.py
Log:
Propagate __name__ in multimethods.

Modified: pypy/dist/pypy/objspace/std/multimethod.py
==============================================================================
--- pypy/dist/pypy/objspace/std/multimethod.py	(original)
+++ pypy/dist/pypy/objspace/std/multimethod.py	Tue Oct  7 16:17:18 2008
@@ -261,7 +261,7 @@
                        things_to_call):
         # support for inventing names for the entries in things_to_call
         # which are real function objects instead of strings
-        miniglobals = {'FailedToImplement': FailedToImplement}
+        miniglobals = {'FailedToImplement': FailedToImplement, '__name__': __name__}
         def invent_name(obj):
             if isinstance(obj, str):
                 return obj



More information about the Pypy-commit mailing list