Message301532
I suppose it may be an implementation detail, though I wouldn't be amazed that had enum existed when re was written it'd have been used instead of constant integers at the time. Though I do suppose exposing it fully would add two ways to get the flags which I can see how it would be considered bad.
It's still useful for type checking though, and while I did make a PR to add it to typeshed, that still leaves it in an iffy state and I probably would not be the last person to be confused by it initially. |
|
Date |
User |
Action |
Args |
2017-09-06 22:43:21 | PJB3005 | set | recipients:
+ PJB3005, ezio.melotti, mrabarnett, r.david.murray, docs@python |
2017-09-06 22:43:21 | PJB3005 | set | messageid: <1504737801.52.0.895111997047.issue31369@psf.upfronthosting.co.za> |
2017-09-06 22:43:21 | PJB3005 | link | issue31369 messages |
2017-09-06 22:43:21 | PJB3005 | create | |
|