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

Daπid davidmenhur@gmail....
Wed Feb 6 05:57:00 CST 2013


On 6 February 2013 08:41, Charles R Harris <charlesr.harris@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