On Fri, 18 Sep 2020 18:14:35 -0700
Ethan Furman <[email protected]> wrote:
> 
> So at this point, I think the choices are:
> 
> Standard Enum
>        __repr__                   __str__
> <RegexFlag.IGNORECASE: 2>   RegexFlag.IGNORECASE
> 
> and
> 
> Modified Converted Constant
>        __repr__                   __str__
> re.IGNORECASE                       2

My vote goes towards the "Standard Enum" choice.  "2" in particular is
entirely uninformative in this case, since all the code I've ever seen
and written uses the symbolic constant, not the numeric value (which as
far as I'm concerned is an implementation detail).

Regards

Antoine.

_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/QLPJBFZUPTOOCOJBZ3SLMUCXFKEDCRJB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to