to pass self or not to pass self
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Tue Mar 16 05:04:10 EDT 2010
lallous a écrit :
> Hello,
>
> Learning Python from the help file and online resources can leave one
> with many gaps. Can someone comment on the following:
(snip code)
> Why in test1() when it uses the class variable func_tbl we still need
> to pass self, but in test2() we don't ?
>
> What is the difference between the reference in 'F' and 'func_tbl' ?
Answer here:
http://wiki.python.org/moin/FromFunctionToMethod
More information about the Python-list
mailing list