[Python-Dev] cpython (merge 3.2 -> default): Avoid codec spelling issues by just using the utf-8 default.

Benjamin Peterson benjamin at python.org
Thu May 5 21:13:34 CEST 2011

2011/5/5 Alexander Belopolsky <alexander.belopolsky at gmail.com>:
> On Thu, May 5, 2011 at 2:44 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> ..
>> (also, I don't understand the spelling issue: "utf-8" just works)
> This is probably referring to the fact that while encode() accepts
> many spelling variants, some are short-circuited in C code while
> others require codec lookup implemented in python.

Isn't it cached after the first run? If this is the reasoning, I find
it hard to believe that seed() is a large bottleneck in random.


More information about the Python-Dev mailing list