Re: Converting a string to a function pointer

2005-02-06 Thread Tim Roberts
Håkan Persson <[EMAIL PROTECTED]> wrote: > >I am trying to "convert" a string into a function pointer. >Suppose I have the following: > >from a import a >from b import b >from c import c > >funcString = GetFunctionAsString() > >and funcString is a string that contains either "a", "b" or "c". >How c

RE: Converting a string to a function pointer

2005-02-04 Thread Robert Brewer
Håkan Persson wrote: > I am trying to "convert" a string into a function pointer. > Suppose I have the following: > > from a import a > from b import b > from c import c > > funcString = GetFunctionAsString() > > and funcString is a string that contains either "a", "b" or "c". > How can I simply

Re: Converting a string to a function pointer

2005-02-04 Thread Steve Holden
Håkan Persson wrote: Hi. I am trying to "convert" a string into a function pointer. Suppose I have the following: from a import a from b import b from c import c funcString = GetFunctionAsString() and funcString is a string that contains either "a", "b" or "c". How can I simply call the correct fun

Re: Converting a string to a function pointer

2005-02-04 Thread John Machin
On Fri, 04 Feb 2005 12:01:35 +0100, Håkan Persson <[EMAIL PROTECTED]> wrote: >Hi. > >I am trying to "convert" a string into a function pointer. >Suppose I have the following: > >from a import a >from b import b >from c import c > >funcString = GetFunctionAsString() > >and funcString is a string th

Converting a string to a function pointer

2005-02-04 Thread Håkan Persson
Hi. I am trying to "convert" a string into a function pointer. Suppose I have the following: from a import a from b import b from c import c funcString = GetFunctionAsString() and funcString is a string that contains either "a", "b" or "c". How can I simply call the correct function? I have tried u