13 Jul
2021
13 Jul
'21
1:52 p.m.
Am Di., 13. Juli 2021 um 15:02 Uhr schrieb <sandhoners123@gmail.com>:
Right now, writelines is a very big misnomer to many python developers, especially beginners who would expect writelines to put new lines at the end of every element in the list
My suggestion is to have either a writelines2 or a newline kwarg which does put new lines automatically at the end of every line written
I like the idea of having a kwarg for writelines <https://docs.python.org/3/library/io.html#io.IOBase.writelines>. Do you want a boolean like "append_newlines=True" or a string like "append_string='\n'" Regards, Thomas