Raymond Hettinger wrote: > Currently, writelines() does not add trailing line separators.. > This is fine when working with readlines() but a PITA in other situations. > > If we added an optional separator argument, it would be easier to add > newlines and we would gain some of the flexibility of str.join() at full > C speed. Maybe not a separator but suffix, so newline will be added to last line too? -- Dmitry Vasiliev (dima at hlabs.spb.ru) http://hlabs.spb.ru
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4