Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r87922:2f2295cb3e89
Date: 2016-10-25 04:18 +0100
http://bitbucket.org/pypy/pypy/changeset/2f2295cb3e89/

Log:    Correctly set __qualname__ for built-in functions (fixes pickling of
        array instances)

diff --git a/pypy/interpreter/mixedmodule.py b/pypy/interpreter/mixedmodule.py
--- a/pypy/interpreter/mixedmodule.py
+++ b/pypy/interpreter/mixedmodule.py
@@ -125,6 +125,7 @@
                     bltin.w_module = self.w_name
                     func._builtinversion_ = bltin
                     bltin.name = name
+                    bltin.qualname = bltin.name.decode('utf-8')
                 w_value = space.wrap(bltin)
             space.setitem(self.w_dict, w_name, w_value)
             return w_value
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to