So I have a python script that I'd prefer worked on python 3.2 and 2.7 just for convenience.
Is there a way to have unicode literals that work in both? E.g.
#coding: utf-8
whatever = '????'
The above code would require a unicode string in python 2.x (u''
) and in python 3.x that little u
causes a syntax error.