Jakub Wilk schrieb am 30.08.2015 um 19:44:
> DEF silently converts byte strings to Unicode strings:
> 
> $ cat testcase.pyx
> DEF ABYTE = b'a'
> print type(ABYTE)
> 
> $ python --version
> Python 2.7.10
> 
> $ python -c 'import pyximport as p; p.install(); import testcase'
> <type 'unicode'>
> 
> Tested with Cython 0.23.1.

Thanks for the short reproducer.

https://github.com/cython/cython/commit/061b132e58812e844ef4e35e6444ba21e0f95289

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to