We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From Chris Csikszentmihalyi mail:
Here's an example of getting an object's value from python into the C space:
138 INLINE int pyo_get_python_int(PyThreadState *interp) { 139 PyObject *module, *obj; 140 PyEval_AcquireThread(interp); 141 module = PyImport_AddModule("main"); 142 obj = PyObject_GetAttrString(module, "freq"); 143 PyEval_ReleaseThread(interp); 144 145 long foobar = PyInt_AsLong(obj); 146 return (int) foobar; 147 } This seems to work well and causes no mode switches.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From Chris Csikszentmihalyi mail:
Here's an example of getting an object's value from python into the C space:
138 INLINE int pyo_get_python_int(PyThreadState *interp) {
139 PyObject *module, *obj;
140 PyEval_AcquireThread(interp);
141 module = PyImport_AddModule("main");
142 obj = PyObject_GetAttrString(module, "freq");
143 PyEval_ReleaseThread(interp);
144
145 long foobar = PyInt_AsLong(obj);
146 return (int) foobar;
147 }
This seems to work well and causes no mode switches.
The text was updated successfully, but these errors were encountered: