Yup, that's what I woulda guessed. I'm pretty sure self is the container. It's an interesting break in the usual Python equivalence. On Thu, 27 May 2004, Paul Winkler wrote:
On Thu, May 27, 2004 at 11:56:05AM -0700, Dennis Allison wrote:
Probably a stupid question, but ..
Suppose I have external methods f(self, x, y z ) and g(self, p, d, q) defined in an external method.
When f references g in the external method, does it do so using self.g(p,d,q) or g( self, p, d, q)
or does it matter.
If they're defined in the same module, the latter.
Otherwise, the former will work by acquisition (but 'g' must be the ID that you give to the external method object in the ZMI). In that case I'm not entirely sure what g would use for "self".
--
Paul Winkler http://www.slinkp.com