[Cython] DEF converts byte strings to unicode

Jakub Wilk jwilk at jwilk.net
Sat Sep 12 14:59:10 CEST 2015


I think something is still not quite right in Cython 0.23.2.

Consider this code:

DEF FOO = 'foo'
print type('foo')
print type(FOO)

In Python 3, I get:

<class 'str'>
<class 'bytes'>

-- 
Jakub Wilk


More information about the cython-devel mailing list