I have a very unusual problem. Am working with python 2.6 to make API calls to a bulkSMS gateway. Now if I make the call like this
req = urllib2.Request(url)
urllib2.urlopen(req).read()
I get this(correct) response printed back to terminal
'<RESPONSE>\r<status>-4</status>\r<credits>31.3403</credits>\r</RESPONSE>'
But when I assign this output to variable,
reply = urllib2.urlopen(req).read()
I get this(incorrect) response when I print to terminal
print reply
</RESPONSE>.3403</credits>
Anybody care to explain what's going on here?