Stefan Behnel wrote:
> a) you can't be sure that you are actually looking at an ASCII-compatible
> string (i.e. ISO or UTF-8 encoded)
By ascii, I don't mean utf8, I mean all code points are in
the range 0..127. That much can be checked accurately, I
think.
> b) this makes it very easy to write
> buggy code that works perfectly until someone passes non-ASCII characters.
That's what I don't follow. Code such as
cdef char *p
p = s.encode('ascii')
has exactly the same property, as far as I can see -- it
works until someone passes it non-ascii characters. I
would call it a limitation rather than a bug.
--
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev