Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.3
Changeset: r76227:fd0caf2bbcc8
Date: 2015-03-02 23:31 +0100
http://bitbucket.org/pypy/pypy/changeset/fd0caf2bbcc8/
Log: Populate __qualname__ in type.__new__, this fixes test_class.py
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -1123,6 +1123,9 @@
hasoldstylebase = copy_flags_from_bases(w_self, w_bestbase)
create_all_slots(w_self, hasoldstylebase)
+ if '__qualname__' in w_self.dict_w:
+ w_self.qualname = w_self.space.unicode_w(w_self.dict_w['__qualname__'])
+
ensure_common_attributes(w_self)
def setup_builtin_type(w_self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit