Re: [Pyobjc-dev] experiences using pyobjc+pychecker?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-11-19 21:51:45
|
On 19 nov 2003, at 22:42, Bob Ippolito wrote: > On Nov 19, 2003, at 4:11 PM, David Eppstein wrote: > >> Hi, is anyone else using pychecker and pyobjc together successfully? >> I just did several things at once: upgrade to 10.3 (and the >> command-line >> python that comes with it); upgrade to yesterday's cvs version of >> PyObjC, and start trying the new pychecker that was just announced >> yesterday. When I try pychecker on a very short PyObjC source file, I >> get a bus error: >> >> Hyperbolic% pychecker unicmp.py >> Processing unicmp... >> /usr/local/bin/pychecker: line 3: 4306 Bus error > > pychecker probably tries to delete some ObjC-code-containing extension > modules from sys.modules, which causes Bad Things To Happen if their > ref count goes to 0 and python tries to unload the bundle. pydoc can > quite easily cause this problem. Try doing the following at the top > of your module: That's not necessary, it was a genuine PyObjC bug :-( Unloading of ObjC-code-containing extension modules will also cause a crash, but that's a different issue. Do you know where and how python unloads dynamicly loaded modules, the dynload_*.c files don't seem to define functions for unloading a module? I'd like to have a sugestion about how to fix the problem before filing a bug on this at python's bugtracker (a simple testcase would also be nice, but that is easy enough). Ronald |