Re: Problems with dynamic function creation.

2007-08-22 Thread Steve Holden
Peter Otten wrote: > Steven W. Orr wrote: > > [snip mess] > >> Everything works just fine (that I know of) except > > Sometimes you have to just fix the code you have. This however doesn't just > smell funny, it's hopeless. Start with clearly stating your goals and then > do a rewrite. > > Sho

Re: Problems with dynamic function creation.

2007-08-22 Thread Peter Otten
Steven W. Orr wrote: [snip mess] > Everything works just fine (that I know of) except Sometimes you have to just fix the code you have. This however doesn't just smell funny, it's hopeless. Start with clearly stating your goals and then do a rewrite. Should you need help again, remember post a

Problems with dynamic function creation.

2007-08-22 Thread Steven W. Orr
I have some functions I need to create at runtime. The way I'm creating them is by calling a function which returns the string representation. Then I exec the string. Here's the code I use to gen the strings: mkfactfns.py --- import new def mkfactfns( cname ): def auxgen( name, para