Closed robertwb closed 9 years ago
scoder changed resolution to invalid
status from new
to closed
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')
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