Re: python open.write insert's extra lines after any line after writing?

My money is on the text editor is displaying \r as a newline, they're writing \n themselves, and it's getting converted to \r\n by Python.  Try this:

open("myfile.txt", "wb")

And see if it does what you want.



-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : mohamed via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : mohamed via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : GrannyCheeseWheel via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to