Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r66049:b9699dee6f10
Date: 2013-08-10 10:58 +0200
http://bitbucket.org/pypy/pypy/changeset/b9699dee6f10/

Log:    Kill this method, which by mistake gives a w__class__ attribute on a
        few classes where it doesn't make sense to have one. This was
        introduced during "shadowtracking" experiments which have long since
        been killed (see db954a0b9114).

diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py
--- a/pypy/interpreter/typedef.py
+++ b/pypy/interpreter/typedef.py
@@ -329,10 +329,6 @@
                     instance=True)
                 base_user_setup(self, space, w_subtype)
 
-            def setclass(self, space, w_subtype):
-                # only used by descr_set___class__
-                self.w__class__ = w_subtype
-
         add(Proto)
 
     subcls = type(name, (supercls,), body)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to