The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

Random832 random832 at fastmail.com
Mon Mar 21 10:04:39 EDT 2016


On Mon, Mar 21, 2016, at 09:48, Steven D'Aprano wrote:
> Pardon me, do I understand you correctly? You're saying that the C parser
> is
> Unicode-aware and allows you to use Unicode in C source code?

Er, "the" C parser?

In the C standard, the source character set is implementation-defined,
and is specifically called out that it "may contain multibyte
characters, used to represent members of the extended character set".

But that's really not the point here, the point is that expecting an
implementation of a character-based switch statement in Python to be
able to rely on there only being 256 characters is unreasonable.



More information about the Python-list mailing list