On 12/10/2017 09:50 AM, Guido van Rossum wrote:
There's a third-party enum package. Maybe you can contribute an implementation
of this idea there. If it becomes popular
maybe we can add it to the stdlib enum module.
The third-party library in question is aenum (enum34 isn't getting new functi
There's a third-party enum package. Maybe you can contribute an
implementation of this idea there. If it becomes popular maybe we can add
it to the stdlib enum module.
On Sun, Dec 10, 2017 at 2:23 AM, Kirill Balunov
wrote:
> Since PEP 557 "Data Classes"[1] and PEP 526 "Syntax for Variable
> Anno
Since PEP 557 "Data Classes"[1] and PEP 526 "Syntax for Variable
Annotations"[2] are accepted and become part of the language. Is it worth
writing a proposal about decorator-version for creating an enumeration?
Something like:
from enum import enum
@enum(unique=True, int_=False, flag=False, ...):