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

Re: [Pythonmac-SIG] Get the locale on OSX

2007-12-03 Thread Chris Van Bael
On Dec 3, 2007 8:40 AM, Nicholas Riley <[EMAIL PROTECTED]> wrote: > On Sun, Dec 02, 2007 at 03:18:14PM +0100, Chris Van Bael wrote: > > I'm trying to port an python application which runs fine on Windows > > and Linux to OSX. > > However, it seems "lang = locale.getdefaultlocale()[0]" doesn't work.