John Naylor wrote:
On Fri, Mar 12, 2010 at 5:24 PM, Ray Parrish <[email protected]>
for line in data4:
outfile.write(','.join([str(item) for item in line]))
Could you please explain to me what the ','.join() is doing in your write
command?
See here:
http://www.python.org/doc/faq/general/#why-is-join-a-string-method-instead-of-a-list-or-tuple-method
John
OK, I asked again too quick, after reading a reply from Ethan, I now
understand that it is the separator string for the call to join(). The
syntax just looked strange to me at first.
Later, Ray Parrish
--
Linux dpkg Software Report script set..
http://www.rayslinks.com/LinuxdpkgSoftwareReport.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com
_______________________________________________
Portland mailing list
[email protected]
http://mail.python.org/mailman/listinfo/portland