STINNER Victor <victor.stin...@haypocalc.com> added the comment: @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'> _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5377> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com