Message376913
If it's considered to be not too backwards-incompatible, I think it would be nice to have str different from repr. That way we can finetune what exactly we need. But we can already do almost exactly that with *int* instead of *str*, so it's not too compelling.
Much more important thing is the "repr as inverse of eval". Is there any way we can have that for our own enums (as a mixin or a decorator)?
@module_global(re)
class RegexFlag(Enum):
...
It would be fantastic. :-) |
|
Date |
User |
Action |
Args |
2020-09-14 22:31:43 | veky | set | recipients:
+ veky, barry, ezio.melotti, mrabarnett, eli.bendersky, ethan.furman, serhiy.storchaka |
2020-09-14 22:31:43 | veky | set | messageid: <1600122703.32.0.341064011161.issue40066@roundup.psfhosted.org> |
2020-09-14 22:31:43 | veky | link | issue40066 messages |
2020-09-14 22:31:43 | veky | create | |
|