parameter/argument terminology
Aahz
aahz at pythoncraft.com
Sun Jan 5 21:05:40 EST 2003
In article <mailman.1041769928.7987.python-list at python.org>,
Donnal Walter <donnalcwalter at yahoo.com> wrote:
>
>In writing Python documentation for functions/methods, are the terms
>'argument' and 'parameter' essentially interchangeable? Or is it true that
>parameter usually refers to the definition and argument to the call?
>
> def myFunc(self, P1, P2):
> print P1, P2 # P1 and P2 are parameters
>
> def doSomething(self):
> X = 'Hello '
> Y = 'world'
> self.myFunc(X, Y) # X and Y are arguments
What I usually do is refer to "function parameters" in the first case
and "call parameters" in the second.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"There are three kinds of lies: Lies, Damn Lies, and Statistics." --Disraeli
More information about the Python-list
mailing list