Greg Ewing, 17.12.2009 00:14: >>> Will there be a different >>> handling for function signatures, or will it work the same everywhere? I.e. >>> will a "def func(bytes b)" function always accept unicode, > > Not under my version of the proposal -- there is only > automatic conversion between unicode and a bytes type > with a declared encoding. Unicode and plain bytes are > still incompatible.
That's my preference, too. And I think having a special unicode type that coerces to and from a specifically encoded Python byte string makes sense. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
