I know for example "{:,}".format(123456789) will print '123,456,789' as output in python.
However, instead of the commas I would like the thin space character as the thousands separator. According to here, the python source encoding for the thin space character is u"\u2009".
So I tried replacing the comma in "{:,}" by u"\u2009", but that results in a syntax error. This might be because python can't deal with the resulting nested double quotes and something needs to be escaped.
So is there a way to make this, or some other mechanism work? And by the way I'd like to suppress the single quotes that appear in the output as well.