Closed narategithub closed 4 years ago
str(char[]) gets translated to str(bytes) and results in "b'CONTENT'" (a str with leading "b" character and "'" single quotes surrounding the content). The bytes to str conversion should be done using bytes.decode().
str(char[])
str(bytes)
str
bytes
bytes.decode()
NOTE: char[] is wrapped as bytes by Cython.
char[]
str(char[])
gets translated tostr(bytes)
and results in "b'CONTENT'" (astr
with leading "b" character and "'" single quotes surrounding the content). Thebytes
tostr
conversion should be done usingbytes.decode()
.NOTE:
char[]
is wrapped asbytes
by Cython.