[issue37918] What about an enum for open() modes?
Serhiy Storchaka
report at bugs.python.org
Fri Aug 30 10:21:15 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
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.
----------
nosy: +serhiy.storchaka
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37918>
_______________________________________
More information about the Python-bugs-list
mailing list