[Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
ncoghlan at gmail.com
Mon May 20 00:46:53 CEST 2013
On 20 May 2013 06:25, "Terry Jan Reedy" <tjreedy at 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.
> Python-Dev mailing list
> Python-Dev at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev