Let's leave poor writelines alone. It's an old API, if you want something different, there are a zillion other ways (e.g. print(*x, sep="\n") ).
I wonder how much research the OP did before they claimed "writelines is a very big misnomer to many python developers". On Tue, Jul 13, 2021 at 8:46 AM MRAB <[email protected]> wrote: > On 2021-07-13 15:11, [email protected] wrote: > > Maybe (to be consistent with other functions like print), end= since > that would allow even custom line endings > > > I'm not sure about the name 'end'. The 'print' function has 'end', but > it's printed only at the end(!); .writelines would write it after every > line. > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/2SYIBL275IIHMSPAT6J4K3TIA7HXEKV5/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/RBWD6GIK5JTAM4PDWU6X6O4JWTOXZWUD/ Code of Conduct: http://python.org/psf/codeofconduct/
