Re: Python from Objective-C?
Re: Python from Objective-C?
- Subject: Re: Python from Objective-C?
- From: Jonathan Wight <email@hidden>
- Date: Sat, 10 Jan 2004 18:03:39 -0600
A better place to ask might be:
http://www.python.org/sigs/pythonmac-sig/
However I've previously called Python from Objective-C before. You do
it just like you would call Python from C or C++. See:
http://www.python.org/doc/current/ext/ext.html - the only thing
different is the way you link to Python - under 10.3 there is a
Python.framework that you might be able to link (not sure because I
linked to Python in the old days before the framework came along) - the
Pythonmac-sig people will be able to help if you have problems.
Also the O'Reilly Programming Python book by Mark Lutz has an excellent
chapter (or two I forget) on Embedding Python.
I wonder if you can embed Python and then from Python call back into
your application via PyObjC? Will have to play with it and find out.
Jon.
On Jan 10, 2004, at 14:50, Owen Anderson wrote:
>
Hey,
>
>
I've been looking at PyObjC, and it looks really nice. But there's
>
one thing I can't figure out how to do: call Python code from
>
Objective-C. I have some Python modules lying around that I'd really
>
like to be able to call from within Objective-C. Is there any way to
>
do this?
>
>
Thanks,
>
>
Owen
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.