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