python: bug or feature?
Grant Edwards
ge at nowhere.none
Thu Aug 10 17:41:41 EDT 2000
In article <m33dkchmcr.fsf at greebo.nodomain.de>, Bernhard Herzog wrote:
>> I see the smilie. But to protect the innocent from being misled: :-) I was
>> talking about the _arrangement_ between them. & | ~ ^ are cryptic when you
>> try to visually link them to (and) (or) (not) (xor).
>
>Well, ~ for not is pretty common in maths, I'd say. & for and is at
>least easy to remember, although ^ would look more like the symbol used
>in maths. | for or and ^ for xor is indeed not obvious at all.
The notation used in the Boolean algebra classes I took were
and: raised dot or juxtaposition
or: "+"
xor: "+" w/ circle
not: overbar
None of those are practicle, so Python adopted the operators
used in C.
--
Grant Edwards grante Yow! Hmmm... a CRIPPLED
at ACCOUNTANT with a FALAFEL
visi.com sandwich is HIT by a
TROLLEY-CAR...
More information about the Python-list
mailing list