Re: [Pythonmac-SIG] Embedding Python in Cocoa

2007-12-03 Thread Michael Terry
Sweet, thanks! Michael On 12/3/07, Andrew Trevorrow <[EMAIL PROTECTED]> wrote: > Michael Terry wrote: > > > Suppose you had a Cocoa program that executed Python scripts > > periodically. If global variables were set, they'd retain their values > > between script runs. What would be the best appro

Re: [Pythonmac-SIG] Embedding Python in Cocoa

2007-12-03 Thread Andrew Trevorrow
Michael Terry wrote: > Suppose you had a Cocoa program that executed Python scripts > periodically. If global variables were set, they'd retain their values > between script runs. What would be the best approach to make this > happen? > > Call the C APIs? If so, do I just need to initialize a Pyt

[Pythonmac-SIG] Embedding Python in Cocoa

2007-12-02 Thread Michael Terry
Hi, Suppose you had a Cocoa program that executed Python scripts periodically. If global variables were set, they'd retain their values between script runs. What would be the best approach to make this happen? Call the C APIs? If so, do I just need to initialize a Python interpreter when the prog