I'm running PySFML2-Cython under Python 3, appears to work alright, I'm poriting across a project that was using the old library, and the Text class that replaces the old String class is causing trouble.
I try and pass it a python3 str (unicode) and I get this error:
self.text = sf.Text(value)
File "sf.pyx", line 1591, in sf.Text.__cinit__ (sf.cpp:17293)
TypeError: expected bytes, str found
I was under the impression that the Text class should have supported unicode, unlike everything else, but I tried it the other way, encoding it to bytes:
self.text = sf.Text(bytes(value, "UTF-8"))
File "sf.pyx", line 1614, in sf.Text.__cinit__ (sf.cpp:17503)
TypeError: Expected str or unicode for string, got <class 'bytes'>
Is this something stupid I'm missing, or a problem with the bindings?