|arkanes||for certain limited uses, you might want to just do that for your plugins|
it depends on how extensible you want to be
Ooooh the C wrapper plugin loader for python plugin module wrappers.
|larsl||Basically I want to run a function in the plugin with a particular name and extract a C object from the return value.|
|action||jsoftw has no idea how to do that.|
|jsoftw||has no idea how to do that.|
I recently figured out how to call quotactl() from python though :)
Which is super.
|larsl||The object is going to be a PyGTK widget.|
|jsoftw||ebovine: any ideas ?|
|arkanes||see, now you're getting into even more complicated territory|
|ebovine||Not yet, I've never used Popen.|
Give me a minute, though.
|arkanes||because now you need to marshal between pygtk and the C gtk stuff|
do you have a really, really, really good reason for not driving things from python instead?
|jsoftw||And we cant have that sort of carry on now can we.|
|larsl||arkanes: Yes, the plugin interface is in C.|
|arkanes||thats not a good reason|
at least not as you say it
are you trying to write a plugin for a third party application, that then exposes python?
|larsl||I think it's a pretty good reason... I don't want to have to rewrite in Python every existing and future host that implements the C plugin API .|
|arkanes||you aren't being clear about what you're doing, then|
you're trying to expose Python as a C plugin?
and the host application is a gtk application?
|arkanes||you're going to have to learn something about pygtk internals|
good luck, last I checked pygtk didn't have any way to expose external gtk windows
|ebovine||jsoftw: Hmmm, my ideas are exhausted. Sorry man.|
|arkanes||to the pygtk api, that is|
|snoops||Hi, I'm looking at getting a python book.. Programming Python 3rd ed by Mark Lutz looks pretty comprehensive.. Do any of you guys have it? If so, what do you think of it?|
|ebovine||I did see some links that talked about StringIO not being capable of cross-process marshalling.|
|jsoftw||I might just get a perl script to do this.|
Its a lot lot easier.
|arkanes||embedding perl is really hard|
|ebovine||Drop the sub-processes and just make it work for now.|
|jsoftw||Who said anything about embedding ?|
|arkanes||if you're going to just shell it out, you can do that with python too|