[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

Vinay Rao report at bugs.python.org
Mon Mar 4 07:52:17 EST 2019


Vinay Rao <vinayluzrao at gmail.com> added the comment:

Upon reading the issue threads linked by @xtreak, I have changed my mind and think this is a bad idea.
1) It adds more to maintain without offering much benefit (the use case of the shortcut is probably quite rare)
2) The argument 'mode' only accepting two options is probably a bit unintuitive, considering it typically accepts many others in other ocurrences of this type of functionality.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36181>
_______________________________________


More information about the Python-bugs-list mailing list