name for new Enum decorator
MRAB
python at mrabarnett.plus.com
Fri May 28 10:42:52 EDT 2021
On 2021-05-28 04:23, Ethan Furman wrote:
> Greetings!
>
> The Flag type in the enum module has had some improvements, but I find it necessary to move one of those improvements
> into a decorator instead, and I'm having a hard time thinking up a name.
>
[snip]
>
> So, like the enum.unique decorator that can be used when duplicate names should be an error, I'm adding a new decorator
> to verify that a Flag has no missing aliased values that can be used when the programmer thinks it's appropriate... but
> I have no idea what to call it.
>
> Any nominations?
>
"checked"?
More information about the Python-list
mailing list