Things to address for Py3K
Eric Firing
efiring at hawaii.edu
Wed Oct 11 17:46:56 CDT 2006
Charles R Harris wrote:
[...]
> b) extending 'and' and 'or' to allow element-by-element logical
> operations or adding && and ||
>
> 2) Lowering the precedence of & so that a > 8 & a < 10 works as you
> would expect.
>
>
> Yes on the extra operators. No on changing the precedence of &, that
> would just confuse the heck out of all us c/c++ programmers; && and ||
> would be good.
Travis's suggestion 2 is consistent with c/c++, where precedence
increases from logical to bitwise to relational. (e.g.,
http://www.cs.niu.edu/~duffin/csci241/precedence.html).
Python precedence now increases from logical to relational to bitwise,
so it is inconsistent with c/c++.
(http://docs.python.org/ref/summary.html#l2h-456)
Eric
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Numpy-discussion
mailing list