[Zope-dev] bug in PythonMethod.py (2)

Ava ava@dde974.equipement.gouv.fr
Fri, 26 Nov 1999 14:37:03 +0400


Hello,

Forgot the rambling about the 'minus 1' problem. I didn't understand what
_v_selfish was for.
It is the number or arguments one has to supply to activate the
self=currentobject trick

So the expression has to be written:

self._v_selfish = (fc.co_varnames and fc.co_varnames[0]=='self' and
                   (fc.co_argcount - len(f.func_defaults or ()) - 1))

--
Cordialement,

Jephté CLAIN
minf7@educ.univ-reunion.fr

PS: répondez sur minf7@educ.univ-reunion.fr, et pas sur
ava@dde974.equipement.gouv.fr