[Tutor] Should I use generators here?

2006-05-07 Thread Tony C
I wrote a small Python program to count some simple statistics on a Visual Basic program thatI am maintaining.The Python program counts total lines, whitespace lines, comment lines, Public & Private Subroutines, Public and Private Functions. The Python program takes about 20-40 seconds to count all

[Tutor] query python mastery via programming exercises

2006-05-07 Thread Kermit Rose
Hello. I would like to try to master python programming this summer. All the programming classes that I have taken previously used the technique of assigning programming exercises with examples of relevant techniques, and the task of the student is to study the examples, and apply them to solve

Re: [Tutor] Nested list comprehensions

2006-05-07 Thread Roel Schroeven
Alan Gauld schreef: >> I am having trouble wrapping my mind around >> nested list comprehensions Me too: I feel it should be better with the order reversed. >> and my initial reaction to this is that it should be expressed as: >> >> result = [eachSubObject for eachSubObject in eachObject.m() for

Re: [Tutor] Button Signals

2006-05-07 Thread John CORRY
Liam,   Thanks for the prompt reply.  That is working for me.   Regards,   John,   -Original Message- From: Liam Clarke [mailto:[EMAIL PROTECTED] Sent: 07 May 2006 13:06 To: [EMAIL PROTECTED] Cc: tutor@python.org Subject: Re: [Tutor] Button Signals   Hi John, I'll answe

Re: [Tutor] Button Signals

2006-05-07 Thread Liam Clarke
Hi John, I'll answer your questions, but first: Pythoncard is for wxPython. wxPython is vastly different to PyGTK afaik.The docs you quote answer your question: The return value from a connect () call is an integer tag that identifies your callback. As stated above, you may have as many callbacks p

[Tutor] Button Signals

2006-05-07 Thread John CORRY
Hi,   I am having difficulty with using signal handlers.  I am using Glade 2 and Pygtk.  My editor is Pythoncard.  The following code connects to button one and calls a function which hides button one.     self.wTree = gtk.glade.XML ("phonelog.glade", "window1")     dic={"on_window

Re: [Tutor] Call for volunteer to help revise images for One Day ofIDLE Toying

2006-05-07 Thread Alan Gauld
Danny, I'm happy to do that. I assume you just want the same shots that you currently have? Alan G. - Original Message - > One of the major complaints that people have made about the "One Day > of IDLE Toying" tutorial I've written is that the screenshots are > badly outdated. > >