Am Di., 13. Juli 2021 um 15:02 Uhr schrieb <sandhoners...@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
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/KXJD6XCKV3AMUQMDRL2RVFLMV76KXRFQ/ Code of Conduct: http://python.org/psf/codeofconduct/