Re: [Tutor] wxPython GUI builders?

2007-06-17 Thread Colin J. Williams
Alan Gauld wrote: What's available and in what state of readiness? I tried Boa Constructor but after half a dozen code tweaks I was still running into compatibility errors with the latest wxPython and gave up. I know that Glade is out there, but what state is it in? And PythonCard

Re: [Tutor] testing: doctest and unittest

2005-11-08 Thread Colin J. Williams
Alex Hunsley wrote: Regards testing, I've been playing with both the unittest (http://pyunit.sourceforge.net/pyunit.html) and doctest (http://docs.python.org/lib/module-doctest.html). I was wondering what peoples thoughts were on the effectiveness and convenience of one versus the other. It

Re: [Tutor] Who called me?

2005-11-08 Thread Colin J. Williams
Liam Clarke-Hutchinson wrote: I believe only by explicitly passing a reference to the parent? Liam Clarke-Hutchinson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Campbell Sent: Wednesday, 9 November 2005 7:00 a.m. To: Tutor Subject: [Tutor] Who

Re: [Tutor] avoid eval how???

2005-11-03 Thread Colin J. Williams
Danny Yoo wrote: I have a dynamic functions which created by some algorithms during runtime. These functions are in string type. When I want to use it, I can use eval command. But can someone give me more suggestion about how to handle this problem, I want to avoid eval. Why avoid? It

Re: [Tutor] printing statement

2005-11-03 Thread Colin J. Williams
bob wrote: At 11:31 AM 11/3/2005, Johan Geldenhuys wrote: Hi all, Just a quick question; How do I code this output: files dirs == I want to print something a few space away from the left side or in the middle of the line. In the Python Library Reference look up

Re: [Tutor] File IO

2005-11-03 Thread Colin J. Williams
Michael Haft wrote: Hello, I tried the following code: def readSOMNETM(inputName): input = open(inputName, r) result = [] for line in input: fields = line.split() data = fields[1] + fields[2] + fields[7] result.append(data) input.close() return

Re: [Tutor] avoid eval how???

2005-11-03 Thread Colin J. Williams
Danny Yoo wrote: You make some good points here but I suggest that, in the real world, the risks are small. Hi Colin, But that's the point I'm trying to make; eval() is appropriate only for toy code. In real world code that's exposed to the world, using eval() is usually the wrong thing