From: Jos Backus Date: 2005-01-27T08:32:53+09:00 Subject: Re: New user questions On Thu, Jan 27, 2005 at 05:05:08AM +0900, Ben Giddings wrote: > It seems odd to me that if they were designing Python to be > object-oriented from day 1, that they'd use such an odd syntax for the > OO stuff (the self parameter, the double-underscore things, etc). Since I thought it odd too, I asked Guido about the self parameter at an SVLUG meeting a while ago. His answer was (hope I paraphrase this right) that it should be possible to add a function as a method to a class outside of that class, in which case you'd need to be able to specify the receiver. Doing it this way makes it trivially possible to do this without coming up with any new syntax. -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'