python: bug or feature?

Bernhard Herzog herzog at online.de
Thu Aug 10 06:52:14 EDT 2000


hzhu at localhost.localdomain (Huaiyu Zhu) writes:

> This just shows that the current arrangements of logical operators and
> bitwise operators is a misfeature.  Bitwise operations do not deserve
> cryptic symbols,

But matrix operations do? ;-)

> especially ones with their own precedence levels. :-)

What does the precedence have to do with it? That's something Python got
right. Unlike C, where bitwise operators have the same precedence as the
logical operators which is lower than the precedence of the comparisons.
All that because by the time the distinction of logical and bitwise
boolean oerators was introduced they already had too many (ISTR 40)
users to make incompatible changes.

-- 
Bernhard Herzog   | Sketch, a drawing program for Unix
herzog at online.de  | http://sketch.sourceforge.net/



More information about the Python-list mailing list