(original) (raw)
On 20 May 2013 06:25, "Terry Jan Reedy" <tjreedy@udel.edu> wrote:
\>
\> On 5/19/2013 4:13 PM, Tres Seaver wrote:
\>>
\>> -----BEGIN PGP SIGNED MESSAGE-----
\>> Hash: SHA1
\>>
\>> On 05/19/2013 10:48 AM, Guido van Rossum wrote:
\>>>
\>>> Anyway, if you're doing arithmetic on enums you're doing it wrong.
\>>
\>>
\>> Hmm, bitwise operations, even?
\>
\>
\> Those are logic, not arithmetic as usually understood. (The fact that one can do each with the other is beside the point.)
I consider those to be binary arithmetic, but it's a fair point. The word I really wanted was "comparison" anyway, since the main intended uses of enums are as flags, lookup keys and marker values.
Cheers,
Nick.
>
\>
\>
\>
\> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
\> Python-Dev mailing list
\> Python-Dev@python.org
\> http://mail.python.org/mailman/listinfo/python-dev
\> Unsubscribe: http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com