This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PJB3005
Recipients PJB3005, docs@python, ezio.melotti, mrabarnett, r.david.murray
Date 2017-09-06.22:43:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504737801.52.0.895111997047.issue31369@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-06 22:43:21PJB3005setrecipients: + PJB3005, ezio.melotti, mrabarnett, r.david.murray, docs@python
2017-09-06 22:43:21PJB3005setmessageid: <1504737801.52.0.895111997047.issue31369@psf.upfronthosting.co.za>
2017-09-06 22:43:21PJB3005linkissue31369 messages
2017-09-06 22:43:21PJB3005create