Re: [Tutor] Trying To Debug Code That Runs Arbitrary Function

2010-12-02 Thread Alan Gauld
"Homme, James" wrote If you can get away with not telling me the answer, but pointing me to where to look for the answer, I'd be grateful. OK, Don't use eval or exec they have secuity issues - especially if reading the strings from a file! idea is to read in strings from a file, look one

Re: [Tutor] Trying To Debug Code That Runs Arbitrary Function

2010-12-02 Thread Vern Ceder
Here's your hint... to execute a Python function, it must be followed by parentheses otherwise you are just referring to the function object. HTH, Vern On Thu, Dec 2, 2010 at 9:35 AM, Homme, James wrote: > Hi, > > If you can get away with not telling me the answer, but pointing me to > whe

[Tutor] Trying To Debug Code That Runs Arbitrary Function

2010-12-02 Thread Homme, James
Hi, If you can get away with not telling me the answer, but pointing me to where to look for the answer, I'd be grateful. In my Python learning, I am just now starting to understand how to make classes and extend them, so I have a very long way to go. I wrote this code because I wanted to avoid