Whats the best way to convert int's, long's, double's to strings and vice versa in python.
I am looping through a list and passing longs to a dict that should be turned into a unicode string.
I do
for n in l:
{'my_key':n[0],'my_other_key':n[1]}
Why are some of the most obvious things so complicated?
str( anything )works for every type there is -- by definition. For your own classes,def __str__(self)to tailor what is returned (it's like Java'stoString) What actual problem are you having? Can you provide code and sample output?