This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients eltoder, pitrou, serhiy.storchaka
Date 2015-03-20.20:51:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426884660.4.0.546594682058.issue23726@psf.upfronthosting.co.za>
In-reply-to
Content
>>> class UserIntSlots(int):
...     __slots__ = ()
...     def __repr__(s): return '5'
... 
>>> (4).__class__ = UserIntSlots
>>> 2+2
5
>>> type(2+2)
<class '__main__.UserIntSlots'>

It looks weird.
History
Date User Action Args
2015-03-20 20:51:00serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, eltoder
2015-03-20 20:51:00serhiy.storchakasetmessageid: <1426884660.4.0.546594682058.issue23726@psf.upfronthosting.co.za>
2015-03-20 20:51:00serhiy.storchakalinkissue23726 messages
2015-03-20 20:51:00serhiy.storchakacreate