ANNOUNCE; Try python beta

Mike Meyer mwm at mired.org
Tue Dec 20 14:49:59 EST 2005


Richie Hindle <richie at entrian.com> 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.

        Thanks,
        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list