Robert Bradshaw, 07.09.2010 10:24:
> Actually, b'abcüöä' is a syntax error "bytes can only contain ASCII
> literal characters,"

I didn't know and am deeply surprised they did that in Python 3. So, you're 
right, Python compatibility dictates that bytes literals contain only ASCII 
characters in this case. This would be something to change for -3, in 
addition to (but separate from) the existing unicode_literals behaviour. 
Note that Py2.[67] accept the above just fine with unicode_literals enabled.

However, I don't see how this favours disallowing escaped byte values > 127 
in char* literals, which appear even safer in this light.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to