[Zope] 'self' in external methods

Chris Withers chrisw@nipltd.com
Tue, 03 Oct 2000 13:52:03 +0100


Andrew Kenneth Milton wrote:
> 
> +-------[ seb ]----------------------
> | Hello,
> |
> | Whenever I do a
> | >  def play(self,sound):
> | >    return sound
> 
> You don't define self as a parameter to an external method, so:
> 
> def play(sound):
> 
> will work fine in an external method.

It's not as simple as that. The mechnism involved here is complex and
arguably broken.
This is becoming a FAQ, see the mailing list archives for previous
versions of this discussion which will provide all the detail.

cheers,

Chris