Message238721
>>> class UserIntSlots(int):
... __slots__ = ()
... def __repr__(s): return '5'
...
>>> (4).__class__ = UserIntSlots
>>> 2+2
5
>>> type(2+2)
<class '__main__.UserIntSlots'>
It looks weird. |
|
Date |
User |
Action |
Args |
2015-03-20 20:51:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, eltoder |
2015-03-20 20:51:00 | serhiy.storchaka | set | messageid: <1426884660.4.0.546594682058.issue23726@psf.upfronthosting.co.za> |
2015-03-20 20:51:00 | serhiy.storchaka | link | issue23726 messages |
2015-03-20 20:51:00 | serhiy.storchaka | create | |
|