I'm not really quite sure what voodoo I did here, but my code seems to work in Python 3.1.1 in the following way:<br><br><div style="margin-left: 40px;">class Demo(object):<br> def func(self, n):<br> return n * 5<br>
_f = func(None, 5)<br> <br>d = Demo()<br>print(d._f)<br>print(d.func(5))<br><br># OUTPUT<br>25<br>25<br><br></div>So, hmm?<br><br>Regards,<br><br clear="all">Ching-Yun "Xavier" Ho, Technical Artist<br><br>
Contact Information<br>Mobile: (+61) 04 3335 4748<br>Skype ID: SpaXe85<br>Email: <a href="mailto:contact@xavierho.com">contact@xavierho.com</a><br>Website: <a href="http://xavierho.com/">http://xavierho.com/</a><br>