Re: [Pyobjc-dev] Snapshots
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2002-10-11 14:30:36
|
Cool -- I was worried that disabling the garbage collector would cause the python interpreter to leak objects like a sieve. Fortunately, the gc module is optional and, as such, it shouldn't cause a significant problem to disable it. I'm reworking the PyCocoa PBX project to support Apple's python. thanks! b.bum On Friday, October 11, 2002, at 03:19 AM, Ronald Oussoren wrote: > On Thursday, Oct 10, 2002, at 21:26 Europe/Amsterdam, Bill Bumgarner > wrote: > >> I'm able to cause a bus error from just the objc module. However, >> the actual ObjC interface side of things seems to work fine -- it >> seems to be some kind of a pure Python related problem.... > > I've done some experiments and it seems to be related to the garbage > collector (the 'gc' module). If I call 'gc.disable()' before using the > objc module python doesn't crash. > > The current HEAD contains a workaround in Modules/objc/__init__.py > that calls gc.disable() when the python version is 2.2.0. This is a > bit of a hack, but at least allows you to use the Apple version of > python. > > BTW. This may be a bug in PyObjC but it could also be a bug in Python > 2.2.0 that is triggered by our code. |