ANNOUNCE; Try python beta

Mike Meyer mwm at
Tue Dec 20 20:49:59 CET 2005

Richie Hindle <richie at> writes:
>> My assumption is that if splitting on '\n' leaves us with one
>> thing, we may have gotten a string that used \r for newlines
> Ah, OK.  Your comment talks about DOS - that won't happen on DOS (or
> Windows) which uses \r\n.  I don't know about the Mac.  But the \r\n pair
> isn't handled by your code - strip() on the server side will make it work if
> that's the problem:

You mean there's a difference between DOS and Windows?

The Mac stuff I can test, so that's easier to get right.

>>>> eval("1+2\r".strip())
> 3

I actually did wind up doing it this way. MSIE works now, but still
doesn't seem very reliable.

Mike Meyer <mwm at>
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list