function pointers

Jimmy verma jim_938 at
Mon Jun 2 17:47:20 CEST 2003

Hello !

I have a few statements in C for which i want to write the equivalent code 
in python:

typedef int (*AB)(int a, int b);          #a function pointer type used to 
describe signature of some function.

Then a structure of the form

typedef struct abc
       AB make;
       int a;

Now this structure is getting passed to some function

xyz(const ABC* inter)
         #some code here
          e = inter->Make(a, b);

How can i handle it with python.

Waiting for reply

Thanks in advance.


Race along with NK. The fastest Indian Feel the thrill!

More information about the Python-list mailing list