[Numpy-discussion] Issues to fix for 1.7.0rc2.

Daπid davidmenhur at gmail.com
Wed Feb 6 06:57:00 EST 2013


On 6 February 2013 08:41, Charles R Harris <charlesr.harris at gmail.com> wrote:
>
> More Python craziness
>
> In [6]: print None or 0
> 0
>
> In [7]: print 0 or None
> None

Just for clarifying this behaviour:

In [1]: print None or 0
0

In [2]: print 0 or None
None

In [3]: val = 0 or None

In [4]: print val
None



More information about the NumPy-Discussion mailing list