compress_web.py
Mike Hostetler
thehaas at binary.net
Mon Apr 24 10:01:02 EDT 2000
Oleg Broytmann wrote:
>
> On Fri, 21 Apr 2000, Mike Hostetler wrote:
>
> > for i in newfiles:
> > tar = tar+ " " + i
>
> This is just
>
> tar = string.join(newfiles, " ")
>
Well, I agree that it is simpiler and and faster, the above doesn't
quite work - you lose the present value of tar in the process.
But this works instead:
tar = tar+ " "+ string.join(newfiles," ")
Thanks for the help.
- mikeh
--
Mike Hostetler
thehaas at binary.net
http://www.binary.net/thehaas
GnuPG key: http://www.binary.net/thehaas/mikeh.gpg
More information about the Python-list
mailing list