Barney Gale <[email protected]> added the comment:
New users who want to add lines to a file will see this method and do:
for line in blah:
path.write_text(line, append=True)
Which repeatedly opens/closes the file. This is a foot-shotgun; it
shouldn't be added to pathlib IMO.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46554>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com