Re: [Tutor] output formatting question

2015-08-09 Thread Steven D'Aprano
On Wed, Aug 05, 2015 at 09:08:16PM -0700, tom arnall wrote: > i have read -- with what i think is a reasonable amount of attention > -- all of the doc' i can find about string formatting in python. for > the life of me, i cannot see how any of the other methods do more than > you can do with, to u

Re: [Tutor] output formatting question

2015-08-06 Thread Alan Gauld
On 06/08/15 05:08, tom arnall wrote: i have read -- with what i think is a reasonable amount of attention -- all of the doc' i can find about string formatting in python. for the life of me, i cannot see how any of the other methods do more than you can do with, ... percent style formatting...

Re: [Tutor] output formatting

2009-04-27 Thread Lie Ryan
Matt Domeier wrote: Hi Wayne, Yes, that should work perfectly, but it is in writing files that I'm having the problem. I'm still very new to python, so I only know to use something like filename.write(str(listname)) to write my list to a file.. Is there a straightforward method of combining th

Re: [Tutor] output formatting

2009-04-25 Thread spir
Le Sat, 25 Apr 2009 11:02:47 -0400, Matt Domeier s'exprima ainsi: > Hi Wayne, > > Yes, that should work perfectly, but it is in writing files that I'm > having the problem. I'm still very new to python, so I only know to > use something like filename.write(str(listname)) to write my list to

Re: [Tutor] output formatting

2009-04-25 Thread Matt Domeier
Hi Wayne, Yes, that should work perfectly, but it is in writing files that I'm having the problem. I'm still very new to python, so I only know to use something like filename.write(str(listname)) to write my list to a file.. Is there a straightforward method of combining the ease of the pri

Re: [Tutor] output formatting

2009-04-25 Thread Dave Angel
Matt Domeier wrote: Hello, I have a series of lists that I need to output into files with a specific format. Specifically, I need to have line breaks after each entry of the list, and I need to do away with the ['..'] that accompany the data after I transform the list into a string. Can

Re: [Tutor] output formatting

2009-04-25 Thread W W
On Fri, Apr 24, 2009 at 10:57 PM, Matt Domeier wrote: > Hello, > > I have a series of lists that I need to output into files with a specific > format. Specifically, I need to have line breaks after each entry of the > list, and I need to do away with the ['..'] that accompany the data after I > t