Elementwise -//- first release -//- Element-wise (vectorized) function, method and operator support for iterables in python.
Hans Mulder
hansmu at xs4all.nl
Wed Dec 21 17:08:19 EST 2011
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
More information about the Python-list
mailing list