[Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
tseaver at palladion.com
Mon May 20 13:59:56 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
On 05/19/2013 07:22 PM, Mark Janssen wrote:
> On Sun, May 19, 2013 at 1:13 PM, Tres Seaver <tseaver at palladion.com>
>> -----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
>> Hmm, bitwise operations, even?
> I think it's rather pointless to do bitwise operations on python
> enums. We're not that close to the machine.
What, nobody uses Python to do networking? How abaout driving the GPIO
on a RaspberryPI? Using the bitwise operators to compbine named "flag"
values seems like a pretty natural fit to me (if you don't care about the
specific values, you don't need IntEnum anyway).
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the Python-Dev