New issue 2361: TypeError: __class__ assignment: 'A' object layout differs from 'B' https://bitbucket.org/pypy/pypy/issues/2361/typeerror-__class__-assignment-a-object
Craig Rodrigues: Alex Gaynor was able to come up with this test case which passes under CPython but fails under Pypy: ``` class A(object): __slots__ = ["a"] class B(object): __slots__ = ["a"] inst = A() inst.a = 3 inst.__class__ = B ``` I was also able to reproduce this bug in the Twisted test suite. I can do this by doing the following: ``` git clone https://github.com/twisted/twisted twisted_test1 cd twisted_test1 pypy -m unittest twisted.test.test_rebuild ``` _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue