On Mar 15, 2005, at 17:41, Ron Nixon wrote:

Max:

Thanks that seem to do the trick. One question though,
how do you write a tuple out as a list to a new file
like the example I have in my code

Ron

You mean, all the members of the list, separated by commas, with a new line at the end? Well, this may help you:


>>> foo = map(str, range(10))
>>> foo
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
>>> print ",".join(foo) + "\n"
0,1,2,3,4,5,6,7,8,9

>>>


-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to