How do I represent Carriage Return in this funny language ???
Joseph
joseph.redimerio at baesystems.com
Wed Feb 5 01:53:01 EST 2003
Hi,
I am quite new to PYTHON. I like it .. so far .. it makes me laugh ... just kidding.
Anyway, I need to make a string/character comparison in an 'if' statement.
Goes like this :
if ( oper == "jxredi" )
QUESTION: How do I check for Carriage Return ?
I've tried : if ( oper == '\n')
, if ( oper == "\n")
, if ( oper == chr(15)) ## 15 is ASCII of CR
and none of them work.
Any suggestions please
Cheers,
Joseph.
More information about the Python-list
mailing list