Re: Use empty string for self
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Use empty string for self

From: John Salerno <johnjsal@NOSPAMgmail.com>
Date: Wed Mar 01 2006 - 19:57:42 CET

Duncan Booth wrote:
> John Salerno wrote:
>
>>> The two calls are equivalent.
>> can you also say instance.mymethod(instance, 1, 2) ?
>
> Only if mymethod is defined to take all 4 arguments you just passed to it.

Got it. I understand how it works now.
Received on Sun Apr 30 10:35:02 2006