[Python-ideas] PEP XXX - Competitor with PEP 435: Adding an enum type to the Python standard library
Random832
random832 at fastmail.us
Wed Mar 13 03:04:53 CET 2013
On 03/12/2013 09:43 PM, Andrew Barnert wrote:
> You also need negated values, or there's no way to write "background &= ~Color.RED". So, "~Color.RED" has to be something.
No, you don't. I started saying the same thing (then got sidetracked
into trying to define it as a general operation on sets, then abandoned
the idea as silly) in my last, but.... why not just background -=
Color.RED? Just like sets.
It's different from C, but that's not necessarily a bad thing.
More information about the Python-ideas
mailing list