Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • method mapping table in python

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 590
    Comment on it

    In python method mapping table is an array of PyMethodDef structures which creates this (PyMethodDef) structure through a function and the table needs to be terminated with a sentinel that consists of NULL and 0 values for the appropriate members.
    useing this function in .py file,

    struct PyMethodDef {
       char *ml_name;
       PyCFunction ml_meth;
       int ml_flags;
       char *ml_doc;
    };
    

    1- ml_name: This is the name of the function as the Python interpreter presents when it is used in Python programs.
    2- ml_meth: It is the address to a function that has anyone of the signatures described in previous section.
    3- This flag usually has a value of METH_VARARGS

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: