Isn't bool __invert__ behaviour "strange"?

MonkeeSage MonkeeSage at gmail.com
Sat Sep 23 08:46:33 EDT 2006


Bjoern Schliessmann wrote:
> Lawrence D'Oliveiro wrote:
>
> > Which is why C++ allows "not", "and" and "or".
>
> Is this standards compliant? My reference (book) doesn't contain it,
> but g++ allows it.

"The C++ standard provides _operator keywords_ (Fig. 21.8) that can be
used in place of several C++ operators." (Deitel & Deitel, 2001; 1082).

Regards,
Jordan




More information about the Python-list mailing list