multiple values for keyword argument
Ethan Furman
ethan at stoneleaf.us
Sat Jan 29 10:45:53 EST 2011
More information about the Python-list mailing list
Sat Jan 29 10:45:53 EST 2011
- Previous message (by thread): multiple values for keyword argument
- Next message (by thread): multiple values for keyword argument
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Roy Smith wrote: > In article <8qijsgFgu1U1 at mid.dfncis.de>, > Frank Dierkes <Frank.Dierkes at googlemail.com> wrote: > >> Naming the first parameter self is only a convention. It could be any >> other name, too. > > But it shouldn't. The use of "self" is so universal that using anything > else will just make your code more difficult for other people to > understand. Nevertheless, if you have a good reason to, go ahead. I, myself, use the spanish word 'yo' instead (less keystrokes, I hate 'self', and it amuses me); if I'm working with my numerical experiments I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do try to use 'self' to avoid possible confusion. :) ~Ethan~
- Previous message (by thread): multiple values for keyword argument
- Next message (by thread): multiple values for keyword argument
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list