On Nov 25, 2009, at 12:19 PM, Stefan Behnel wrote: > > Robert Bradshaw, 25.11.2009 19:54: >> You can still use str in Python 3, it's >> just that str -> char* will not happen automatically. > > Slight clarification: "str -> char* will not happen automatically" > is also > true for Py2. 'bytes' is the only type that automatically coerces > from and > to char*.
So, short of a bunch of encoding code (can it be written Pyrex and Cython compatible) there's no way to support this? I'd rather this is allowed with a (runtime) TypeError in Py3 and possibly a compile time warning than disallowed altogether. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
