Showing content from http://mail.python.org/pipermail/python-dev/attachments/20130520/4ef19a19/attachment.html below:
<p dir="ltr"><br>
On 20 May 2013 06:25, "Terry Jan Reedy" <<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:<br>
><br>
> On 5/19/2013 4:13 PM, Tres Seaver wrote:<br>
>><br>
>> -----BEGIN PGP SIGNED MESSAGE-----<br>
>> Hash: SHA1<br>
>><br>
>> On 05/19/2013 10:48 AM, Guido van Rossum wrote:<br>
>>><br>
>>> Anyway, if you're doing arithmetic on enums you're doing it wrong.<br>
>><br>
>><br>
>> Hmm, bitwise operations, even?<br>
><br>
><br>
> Those are logic, not arithmetic as usually understood. (The fact that one can do each with the other is beside the point.)</p>
<p dir="ltr">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.</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4