[Python-Dev] PEP 435 - requesting pronouncement

Nikolaus Rath Nikolaus at rath.org
Mon May 6 00:16:57 CEST 2013


Guido van Rossum <guido at python.org> writes:
>> 1. Having to enter the values is annoying. Sorry, I read the rationale and
>> all that, and I *still* want to write a C-Like enum { A, B, C }. I fully
>> expect to edit and reorder enums (if I ever use them) and get irritated with
>> having to update the value assignments.
>
> I guess there are cultural differences around this. Anyway, you can
> use the functional/convenience API for this purpose.

Would it be wise to forbid ... as an enum value to preserve the option
to use it for automatic value assignment in some indefinite future?


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


More information about the Python-Dev mailing list