Richie Hindle <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>                  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to