[Tutor] mailing list

2008-09-15 Thread Phite Marano
hi please send me all tutorials ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] problem with building dict w/ SQlite SELECTS in loop

2008-09-15 Thread John Fouhy
2008/9/16 Che M <[EMAIL PROTECTED]>: > for style in self.style_list: > > #Get the codes... > cur.execute('SELECT code FROM Codes WHERE code != "" AND Style= "' + > style + '" > AND start >=' + '"' + self.start_datestring + '"' + 'AND start < "' > + self.end_datestring + '"') > m

[Tutor] problem with building dict w/ SQlite SELECTS in loop

2008-09-15 Thread Che M
(struggling to make an informative subject line) Hi, I have what is no-doubt a dumb problem, but I can't get past it... Given a list of items, I want to loop through the list, use the item in a SELECT statement to query an SQLite database, and use the returned data from a .fetchall() to add

Re: [Tutor] clearing lines for a 'front end' to a tool

2008-09-15 Thread Alan Gauld
"James" <[EMAIL PROTECTED]> wrote I'm writing a 'front end' which will show a list of the "things" that are currently happening in the background in a simple (non-interactive) interface. Here's an idea of what the terminal will look like when the program is running. The critical piece of mi

Re: [Tutor] Practice exercise sources

2008-09-15 Thread Samir Parikh
I've also been trying to work my way through www.projecteuler.net. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] clearing lines for a 'front end' to a tool

2008-09-15 Thread Kent Johnson
On Mon, Sep 15, 2008 at 4:22 PM, James <[EMAIL PROTECTED]> wrote: > The question here is mostly about how to generate this output. The > bottom line (the 'status') *always* remains at the bottom of the > screen. The other processes are updated in 'real time', so when job 2 > was done, a "Done gene

[Tutor] clearing lines for a 'front end' to a tool

2008-09-15 Thread James
All, I'm writing a rather complex script which will preform quite a number of complex file system tasks in the background. The program is threaded and almost fully automated. I'm writing a 'front end' which will show a list of the "things" that are currently happening in the background in a simpl

Re: [Tutor] list slice

2008-09-15 Thread Jerry Hill
On Mon, Sep 15, 2008 at 10:56 AM, Norman Khine <[EMAIL PROTECTED]> wrote: > Hello, > I have this code: > > topics = object.parent.get_topics() >for i, topic in enumerate(topics): >all_previous_topics = topics[:i] >print all_previous_topics > > where topics returns a

[Tutor] list slice

2008-09-15 Thread Norman Khine
Hello, I have this code: topics = object.parent.get_topics() for i, topic in enumerate(topics): all_previous_topics = topics[:i] print all_previous_topics where topics returns a list. I am trying to get all the topics before current topic in the loop. Is ther

Re: [Tutor] Practice exercise sources

2008-09-15 Thread Kent Johnson
ASSALAMUALAIKUM DAN SELAMAT SEJAHTERA Selalu dengar tentang NOVALIFE sejak kebelakangan ini? Ingin sertai kami tapi masih ragu-ragu? Buat keputusan sekarang! sebelum ia di naik kan selepas 15hb ini! MLM paling unik dan tiada seumpamanya di dunia.. PInjaman disediakan bagi yang berminat! Buat