Message350203
As title. I just created it:
https://pastebin.com/pNYezw2V
I think it could be useful to have a more descriptive way to declare a file open mode. Many languages has an enum for this.
Maybe open(), os.fdopen(), os.popen() and pathlib.Path.open() can just accept also an OpenMode enum as mode parameter, without the need to write OpenMode.append.value, for example, but just OpenMode.append. As an alternative, OpenMode could be a namedtuple.
I don't know in which module should be put. In `builtins`, `os` or `pathlib`? |
|
Date |
User |
Action |
Args |
2019-08-22 15:54:09 | Marco Sulla | set | recipients:
+ Marco Sulla |
2019-08-22 15:54:09 | Marco Sulla | set | messageid: <1566489249.72.0.0117548525062.issue37918@roundup.psfhosted.org> |
2019-08-22 15:54:09 | Marco Sulla | link | issue37918 messages |
2019-08-22 15:54:09 | Marco Sulla | create | |
|