Re: [Tutor] Python program design

2007-07-24 Thread Tiger12506
>> The line should be >> s = getsize(join(root, name)) >> >> which will print the file size for each "name in files" > > > I got it a bit later. It didn't like me trying to apply it in a print > statement but if I assigned it first and the printed it, no issue. This should give you no problem ~ pr

Re: [Tutor] Python program design

2007-07-24 Thread Doug Glenn
On 7/23/07, Tiger12506 <[EMAIL PROTECTED]> wrote: The line should be s = getsize(join(root, name)) which will print the file size for each "name in files" I got it a bit later. It didn't like me trying to apply it in a print statement but if I assigned it first and the printed it, no issue.

Re: [Tutor] Python program design

2007-07-23 Thread Tiger12506
> Then I would need to get the file size (but this is giving me an error at > the moment) >for name in files: >s = sum(getsize(join(root, name) >print s (syntax error here. I have not figured it out yet. There > are spaces in the path/filename combo) > (code to parse the file

Re: [Tutor] Python program design

2007-07-21 Thread Terry Carroll
On Fri, 20 Jul 2007, Doug Glenn wrote: > I have a question on program design. The program will be a catalog of > portable media (DVD, CD, flash drive, floppy, etc). I am currently in the > preliminary stages of design and I currently would like to get input on what > the best method would be for

[Tutor] Python program design

2007-07-20 Thread Doug Glenn
I have a question on program design. The program will be a catalog of portable media (DVD, CD, flash drive, floppy, etc). I am currently in the preliminary stages of design and I currently would like to get input on what the best method would be for initially gathering the data and what format i