[pypy-svn] pypy fast-forward: A complex TODO item

amauryfa commits-noreply at bitbucket.org
Thu Jan 13 11:44:54 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40633:066877e77aaa
Date: 2011-01-12 13:52 +0100
http://bitbucket.org/pypy/pypy/changeset/066877e77aaa/

Log:	A complex TODO item

diff --git a/lib-python/TODO b/lib-python/TODO
--- a/lib-python/TODO
+++ b/lib-python/TODO
@@ -64,3 +64,11 @@
         def __cmp__(self, other):
             raise RuntimeError
     raises(RuntimeError, cmp, 0, badint(1))
+
+- Fix comparison of objects layout: if two classes have the same __slots__, it
+  should be possible to change the instances __class__::
+
+      class A(object): __slots__ = ('a', 'b')
+      class B(object): __slots__ = ('b', 'a')
+      a = A()
+      a.__class__ = B


More information about the Pypy-commit mailing list