Alright, I give up. I cannot understand the result I am getting from the following code (Python 2.6.6):
message.dest = message.dest.strip()
print type(message.dest)
print message.dest
if message.dest == 'UI':
print "Equal!"
else:
print "Not Equal!"
Somehow my output is:
<type 'str'>
UI
Not Equal!
Any ideas on what is going on here?
repr(message.dest).