Re: [Tutor] fileinput question

2008-08-24 Thread Ezra Taylor
Thanks Kent, that works. On Sun, Aug 24, 2008 at 10:33 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 9:26 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: >> Hello all: >> Can I do the below with input() from fileinput? If >> this is not possible, what can I do t

Re: [Tutor] fileinput question

2008-08-24 Thread Kent Johnson
On Sun, Aug 24, 2008 at 9:26 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: > Hello all: > Can I do the below with input() from fileinput? If > this is not possible, what can I do to create backup files with the > date timestamp as an extension. Thanks for you help all. > > > from tim

Re: [Tutor] fileinput question

2008-08-24 Thread W W
On Sun, Aug 24, 2008 at 8:26 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: > Hello all: > Can I do the below with input() from fileinput? If > this is not possible, what can I do to create backup files with the > date timestamp as an extension. Thanks for you help all. > > > from ti

[Tutor] fileinput question

2008-08-24 Thread Ezra Taylor
Hello all: Can I do the below with input() from fileinput? If this is not possible, what can I do to create backup files with the date timestamp as an extension. Thanks for you help all. from time import strftime for line in fileinput.input(inplace=1,backup='.strftime("%Y-%b-%