Weird behaviour?

jussij at zeusedit.com jussij at zeusedit.com
Sun Apr 21 21:14:53 EDT 2013


On Monday, April 22, 2013 11:05:11 AM UTC+10, Steven D'Aprano wrote:

> I cannot confirm that behaviour. It works fine for me.

As Chris pointed out there is a \r character at the end of the string and that is causing the if to fail. 

I can now see the \r :)

So this is *Windows only* behaviour. 

Cheers Jussi



More information about the Python-list mailing list