471,354 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Python modules - how to create & which are better

I have embedded Python in my C++ application & creating Python
function from the expression. I am then evaluating those Python
compiled function (byte code) using PyObject_CallObject.

I want to create a Python module which will have functions called by
my user defined functions from the embedded Python interpreter.

What will be best approach in this case? Should I be creating
normal .py modules or .so modules (python extended with C code)?
For me, most important is the executiong speed of the code in these
modules. I want them to be fast, as those will be executed lot many
times & in time bound fashion.

Any suggestions on this?
Jan 8 '08 #1
0 803

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.