On 21/12/11 01:03:26, Ian Kelly wrote:
As type conversion functions, bool(x) and
int(x) should *always* return bools and ints respectively
> (or raise an exception), no matter what you pass in for x.

That doesn't always happen in 2.x:

>>> type(int(1e42))
<type 'long'>

This was fixed in 3.0.

-- HansM
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to