[Tutor] please do not post question about writelines

2006-09-09 Thread LL
Hi... I sent a question about an apparent error with writelines. I discovered my error (not closing the file correctly). Please don't post my question.   Thanks, Lance ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tu

[Tutor] error in writelines

2006-09-09 Thread LL
Hi All,   I have a list containing 108 filenames. I want to open each file and write it to an output file, appending it to the previous write. I use the code below. Everything appears to work fine until I reach file 107. Only part of the file is written, and file 108 is not written at all. Th

Re: [Tutor] Dates

2006-09-09 Thread Alan Gauld
John, > c.execute('SELECT * FROM times where rt_weekst >= date(2006,01,31) > and > rt_weekst <= date(2006,12,31) and rt_type == ?', ("R",)) > a = datetime.date(2006,01,31) > b = datetime.date(2006,12,31) > c.execute('SELECT * FROM times where rt_weekst >= ? and rt_weekst <= > ? > and rt_type

Re: [Tutor] Tutor Digest, Vol 31, Issue 23 - some jobs are just too big for Python

2006-09-09 Thread Alan Gauld
"Klaus Ramelow" <[EMAIL PROTECTED]> wrote > My programming experience (beginning at the card-reader aera) > main-frame, mini and micro : > Bit / Byte / Word system-programming via switch-console followed by > Assembler and commercial > software using Basic, Cobol, Pascal and SQL. I go back to a si

[Tutor] Dates

2006-09-09 Thread John CORRY
Hi All, I am using the code below to select items from a visual foxpro database where the dates are between the 31/01/2006 and 31/12/2006. The good news is that the code below works. However, I want to make the from and to dates variable. I want to change the range depending on user input. I c

Re: [Tutor] Tutor Digest, Vol 31, Issue 23 - some jobs are just too big for Python

2006-09-09 Thread Klaus Ramelow
Sometimes I have also some - or more - problems trying digesting python and feeling totally blocked. My programming experience (beginning at the card-reader aera) main-frame, mini and micro : Bit / Byte / Word system-programming via switch-console followed by Assembler and commercial software