Isn't bool __invert__ behaviour "strange"?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Sep 23 08:04:42 EDT 2006


In message <4nivr5Fan2s7U2 at individual.net>, Bjoern Schliessmann wrote:

> In my C++ code,
> it happens so often that I forget or overread a "!". And if I want
> to understand my functions later on, my brain quite wrinkles
> looking at parentheses, !s, &&s and ||s.

Which is why C++ allows "not", "and" and "or".



More information about the Python-list mailing list