[pypy-commit] pypy py3.5: Correctly set __qualname__ for built-in functions (fixes pickling of array instances)
rlamy
pypy.commits at gmail.com
Mon Oct 24 23:19:17 EDT 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
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
More information about the pypy-commit
mailing list