Message205921
Even with last patch int() can return non-int:
>>> class A(int):
... def __int__(self): return True
... def __repr__(self): return '<A>'
...
>>> class B:
... def __int__(self): return A()
...
>>> class C:
... def __trunc__(self): return A()
...
>>> int(B())
<A>
>>> int(C())
True |
|
Date |
User |
Action |
Args |
2013-12-11 20:20:57 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, mark.dickinson, ncoghlan, vstinner, Arfrever, alex, docs@python, ethan.furman, python-dev, eric.snow |
2013-12-11 20:20:57 | serhiy.storchaka | set | messageid: <1386793257.06.0.346996576714.issue17576@psf.upfronthosting.co.za> |
2013-12-11 20:20:57 | serhiy.storchaka | link | issue17576 messages |
2013-12-11 20:20:57 | serhiy.storchaka | create | |
|