python-dev Summary for 2004-08-01 through 2004-08-15
John J. Lee
jjl at pobox.com
Wed Aug 25 14:38:33 EDT 2004
Richie Hindle <richie at entrian.com> writes:
> [Istvan]
> > what does:
> >
> > > It is not to be used in the stdlib ever.
> >
> > mean in this context?
>
> As I understand it, it means that no standard library code should take
> advantage of the fact that repeated s1 += s2 operations are fast in CPython
> 2.4. Instead, it should use the ''.join() idiom.
[...]
The stdlib already *does* take advantage of the patch.
It began taking advantage of it the instant the code was committed,
because, for example, httplib.HTTPResponse_read_chunked() uses string
concatenation.
believe-it-or-not-ly y'rs,
John
More information about the Python-list
mailing list