Author benjamin.peterson
Recipients Trundle, benjamin.peterson, docs@python, jonash, stutzbach, terry.reedy
Date 2011-02-27.18:25:42
SpamBayes Score 0.000436102
Marked as misclassified No
Message-id <1298831143.53.0.0710531390524.issue4600@psf.upfronthosting.co.za>
In-reply-to
Content
This is not really accurate:

>>> class x(int): pass
... 
>>> class y(object): pass
... 
>>> x().__class__ = y
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __class__ assignment: 'x' object layout differs from 'y'
>>> y().__class__ = x
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __class__ assignment: 'y' object layout differs from 'x'
History
Date User Action Args
2011-02-27 18:25:43benjamin.petersonsetrecipients: + benjamin.peterson, terry.reedy, stutzbach, Trundle, jonash, docs@python
2011-02-27 18:25:43benjamin.petersonsetmessageid: <1298831143.53.0.0710531390524.issue4600@psf.upfronthosting.co.za>
2011-02-27 18:25:42benjamin.petersonlinkissue4600 messages
2011-02-27 18:25:42benjamin.petersoncreate