[Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
Nick Coghlan
ncoghlan at gmail.com
Mon May 20 00:46:53 CEST 2013
More information about the Python-Dev mailing list
Mon May 20 00:46:53 CEST 2013
- Previous message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Next message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. Cheers, Nick. > > > > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130520/4ef19a19/attachment.html>
- Previous message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Next message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list