Message 376913 - Python tracker
Message376913
| Author | veky |
|---|---|
| Recipients | barry, eli.bendersky, ethan.furman, ezio.melotti, mrabarnett, serhiy.storchaka, veky |
| Date | 2020-09-14.22:31:43 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1600122703.32.0.341064011161.issue40066@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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. :-) |
|
| History | |||
|---|---|---|---|
| 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 | |