[Python-Dev] Usage of += on strings in loops in stdlib

Lennart Regebro regebro at gmail.com
Wed Feb 13 21:18:12 CET 2013


On Wed, Feb 13, 2013 at 7:06 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
> I actually wonder.
>
> There seems to be the consensus to avoid += (to some extent). Can
> someone commit the change to urrllib then? I'm talking about reverting
> http://bugs.python.org/issue1285086 specifically

That's unquoting of URLs, strings that aren't particularly long,
normally. And it's not in any tight loops. I'm astonished that any
change makes any noticeable speed difference here at all.

//Lennart


More information about the Python-Dev mailing list