Re: exec a string in an embedded environment

2006-01-17 Thread Tommy Ryding
I can't post that much of what I have done but some questions might answer if you e-mail me the question to my gmail.com address. [EMAIL PROTECTED] //Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: exec a string in an embedded environment

2006-01-17 Thread Tommy Ryding
No it didn't help me :( the foo_ptr that is returned from PyRun_String is not a callable object. Therefor I can't call it from PyObject_Call. I would like to do the exact same procedure as I do when the code is located in a module (file). pModule = PyImport_Import(pName); Py_DECREF(pNam

Re: exec a string in an embedded environment

2006-01-12 Thread Greg Copeland
I would be happy to share my point with you. In fact, I'm fixing a minor memory leak (socket module; vxWorks specific) in Python 2.3.4 (ported version) today. My port is actually on BE XScale. Email me at g t copeland2002@@ya hoo...com and I'll be happy to talk more with you. -- http://mail.py

Re: exec a string in an embedded environment

2006-01-11 Thread Jon
Tommy, same question to you... :-) -Jon -- http://mail.python.org/mailman/listinfo/python-list

Re: exec a string in an embedded environment

2006-01-11 Thread [EMAIL PROTECTED]
Greg Copeland wrote: > On Wed, 11 Jan 2006 04:29:32 -0800, Tommy R wrote: > > > I work on a safety critical embedded application that runs on VxWorks. > > I have successfully ported the interpreter to VW. In my solution I have > > Sure wish you would of asked...I ported Python to VxWorks > some tim

Re: exec a string in an embedded environment

2006-01-11 Thread Greg Copeland
On Wed, 11 Jan 2006 04:29:32 -0800, Tommy R wrote: > I work on a safety critical embedded application that runs on VxWorks. > I have successfully ported the interpreter to VW. In my solution I have Sure wish you would of asked...I ported Python to VxWorks some time back. I've been using it for s

Re: exec a string in an embedded environment

2006-01-11 Thread Graham Fawcett
Tommy R wrote: > I need some way to execute a string and pass arguments to the functions > inside the string. We have discussed a solution where we first load the > string (containing some funcs) and then run something similar to > Py_RunString("foo(1.0, 'str')"); We need to do this in a generic w

exec a string in an embedded environment

2006-01-11 Thread Tommy R
Hi all pythonistas! I have a problem with my embedding of python inside a c app. very short background I work on a safety critical embedded application that runs on VxWorks. I have successfully ported the interpreter to VW. In my solution I have restricted other "classes" to use python through my