Message82911
@tjreedy: Do you expect conversion to small int if __int__() result
fits in a small int?
----
class A:
def __int__(self):
return 1L
x=int(A())
print repr(x), type(x)
----
Result with Python 2.5.1: 1L <type 'long'> |
|
Date |
User |
Action |
Args |
2009-02-28 14:42:04 | vstinner | set | recipients:
+ vstinner, rhettinger, terry.reedy, mark.dickinson, debedb |
2009-02-28 14:42:04 | vstinner | set | messageid: <1235832124.58.0.0135449360026.issue5377@psf.upfronthosting.co.za> |
2009-02-28 14:42:01 | vstinner | link | issue5377 messages |
2009-02-28 14:42:01 | vstinner | create | |
|