<div class="gmail_quote">2012/7/24 Daniele Varrazzo <span dir="ltr"><<a href="mailto:piro@develer.com" target="_blank">piro@develer.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">In windows forse "rstrip('\r\n')" è anche meglio, ma non sono sicuro sia necessario (forse py converte CRLF -> LF? Non mi ricordo).</div></blockquote><div><br></div><div>Secondo me non converte.</div>
<div><br></div><div><div>marcob@pc-beruntu:~$ od -c x</div><div>0000000 \r \n</div><div>0000002</div><div>marcob@pc-beruntu:~/tmp$ python</div><div>Python 2.7.2+ (default, Oct 4 2011, 20:03:08) </div><div>[GCC 4.6.1] on linux2</div>
<div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> file("x", "r").read()</div><div>'\r\n'</div><div>>>> file("x", "rb").read()</div>
<div>'\r\n'</div><div><br></div></div><div>Ciao.<br>Marco.</div><div><br></div><div><br></div></div>