Stefan Behnel wrote:

> Ah, right, that's due to the str/bytes/unicode separation in 0.12.

Ah, I see. It's probably behaving as designed, then,
because the user hasn't said that his str class is
based on anything that would be compatible with a
builtin str.

I think the difference is that Cython has an internal
notion of the builtin str class, whereas Pyrex
doesn't -- to Pyrex, a Python string is just a
generic Python object.

If Cython does have a str type internally, it
needs to be exposed so that users can use it or
subclass from it without confusing the type
checking.

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

Reply via email to