Closed robertwb closed 8 years ago
Comment by scoder on 9 Aug 2015 13:35 UTC
The C code you copied does only the conversion from char*
to a Python object. The actual str()
call comes after that and should turn the bytes object into a b'...'
representation.
My guess is that you should use this instead:
__version__ = LLFUSE_VERSION.decode('ascii')
Reported by nikratio on 1 Aug 2015 18:55 UTC When calling
str
on achar *
variable, the result is of typebytes
. I believe that when using Python 3 semantics, the result should bestr
.Testcase:
Migrated-From: http://trac.cython.org/ticket/855