looking for command-pipe performance advice

Sheila King sheila at spamcop.net
Sat Apr 7 19:26:01 EDT 2001


On Sat, 7 Apr 2001 17:23:51 -0400, "Steve Holden" <sholden at holdenweb.com>
wrote in comp.lang.python in article
<qyLz6.111511$5H6.4156571 at e420r-atl2.usenetserver.com>:

:> body = string.join(raw_body, "")
:>
:Surely this line is completely redundant here, since you called read() and
:not readlines()? Maybe you changed form the latter to the former and
:overlooked this?

Oops! You're right! I think I did have readlines() in a previous version of
the script, and forgot to remove the "join" command when I switched that.

I removed the join command now.

Tnx,

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list