[Cython] PEPs 263 and 3120
Stefan Behnel
stefan_ml at behnel.de
Mon Apr 21 23:18:08 CEST 2008
Hi,
Robert Bradshaw wrote:
> Whether it
> makes it easier to make the entire parser operate on unicode I don't
> know (would there be a performance impact?)
Not much of an impact, there is so much happening in between that you won't
notice the encoding/decoding steps. At least in Py2.5, byte strings and
unicode strings are similarly fast.
> As for making docstrings unicode in Python 2, I think this is a bad
> idea because some programs extract and manipulate them at runtime and
> will be expecting Strings.
I'd rather think that any tool that does not know how to deal with unicode
strings as doc-strings is broken in Py2 already. It's not uncommon to have
them, it's just not the default.
Stefan
More information about the Cython-dev
mailing list