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 serhiy.storchaka
Recipients Marco Sulla, serhiy.storchaka, vstinner
Date 2019-08-30.14:21:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567174875.55.0.345080681691.issue37918@roundup.psfhosted.org>
In-reply-to
Content
No modification of open() is needed. Just make your enum class a subclass of str.

This idea does not look particularly attractive to me, but you can create a package on PyPi with your OpenMode class and test how popular it will be.
History
Date User Action Args
2019-08-30 14:21:15serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, Marco Sulla
2019-08-30 14:21:15serhiy.storchakasetmessageid: <1567174875.55.0.345080681691.issue37918@roundup.psfhosted.org>
2019-08-30 14:21:15serhiy.storchakalinkissue37918 messages
2019-08-30 14:21:15serhiy.storchakacreate