Re: [Pyobjc-dev] Running tests in one python session
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-05-29 20:53:43
|
On donderdag, mei 29, 2003, at 21:02 Europe/Amsterdam, Ronald Oussoren wrote: > Posing also introduces another, possibly more serious, problem: If > someone poses as NSObject after you import Foundation, > Foundation.NSObject still references the original NSObject (which is > now %NSObject). This can be fixed for 'import Foundation', but not for > 'from Foundation import *'. Sadly enough the latter is how most peoply > import the module. I thought about this for a while, and I can't see why this is a python-specific problem. If posing modifies the ObjC NSObject in-place then the Python wrapper would see the changes. If posing modifies it out-of-place then ObjC problems should also have the problem that any references to NSObject created before the posing will still refer to the old one. Or am I missing something (I assume I am, I just don't see it:-)? -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |