initialization in argument definitions

Aaron Brady castironpi at gmail.com
Sat Nov 22 20:32:03 EST 2008


On Nov 21, 3:25 pm, Brentt <BrenttNew... at gmail.com> wrote:
> Hi, I know this is a terribly simple question, but the docs seem to be
> designed for people who probably find a the answer to this question
> terribly obvious. But its not at all obvious to me.
>
> I can't figure out why when I define a function, a variable
> (specifically a list) that I define and initialize in the argument
> definitions, will not initialize itself every time its called.
snip
> Why is this? Thanks, hope its not a stupid quesiton.

That is not what the equals sign means in a 'def' statement in Python.

No, not a stupid question.



More information about the Python-list mailing list