PythonWin 2 UNIX

Mark Hammond MarkH at ActiveState.com
Fri Apr 6 03:32:37 EDT 2001


Steve Holden wrote:

> "dsavitsk" <dsavitsk at e-coli.net> wrote in message

> Just to revisit: the only problem I have heard about CRLF causing was in the
> #!, where the CR will be taken as part of the program name, and the Python
> interpreter file will not be found. Are you saying that UNIX flavours cannot
> ignore a carriage return? If so, it would be interesting to see such syntax
> error report.

 >>> compile("print 1\n", "<string>", "exec")
<code object ? at 012BBA20, file "<string>", line 1>
 >>> compile("print 1\r\n", "<string>", "exec")
Traceback (most recent call last):
...

Mark.




More information about the Python-list mailing list