Movatterモバイル変換


[0]ホーム

URL:


BUG? Re: stripping cr/lf, lf, cr

deadmeatroot at [127.0.0.1]
Tue Apr 3 14:13:19 EDT 2001


>  >>> os.linesep>  '\012'os.linesep is \015\012 on Windows.I seem to have found the real problem: readline()/readlines() returns thestring(s) with only \012 on it, not both or none. I guess it's becauseDOS/Win use two bytes not one like Unix/Mac for EOL, making EOL a tad hardersince it requires peeking ahead a byte to see if it's \012 or not.


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp