After upgrading to Cython 0.12 today (Python 2.5.2, x86-64, linux), some code of mine broke. Specifically, it's code for reading a binary format, and in the tests I had a string that made Cython fail to compile with the error: String decoding as 'UTF-8' failed. Consider using a byte string or unicode string explicitly, or adjust the source code encoding.
As an example, here's a complete file that Cython 0.12 will refuse to compile: ------------- s = "\x12\x34\x9f\x65" ------------- I'm not sure why it's nattering about the source code encoding when the problem is with explicitly quoted byte values, but... my question is, I can fix this by adding a "b" sigil on the front, but that's incompatible with earlier versions of Cython. Is there any way to write this string that will work with all versions of Cython? (And was it really intentional to break Python source compatibility so badly?) -- Nathaniel _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
