I'm using the pydev plugin for Eclipse and have run across the problem whilst trying to include unicode strings. As far as I can tell this is NOT the common problem of unicode compatibility between pydev and the python on the commandline.
If I use a unicode string such as the following:
INFINITY_STRING = u"\u5555"
pydev flags it with the error:
Multiple markers at this line
- occurrence
- Undefined variable: u
- Encountered "\"\\u5555\"" at line 54, column 13. Was expecting one of: <NEWLINE> ... "(" ... "[" ... ";" ... "," ... "." ... "+" ... "-" ... "*" ... "/" ... "//" ...
"<<" ... ">>" ... "%" ... "^" ... "|" ... "&" ... "=" ... ">" ... "<" ... "==" ... "<=" ... ">=" ... "!=" ... "or" ... "and" ... "not" ... "is" ... "in" ... "if" ...
";" ... "," ...
The code compiles and runs but this supposed error messes up the autocompletion and refactoring features. Does anyone know how to prevent pydev from throwing an error when presented with unicode strings?