Re: initialization in argument definitions

2008-11-23 Thread Terry Reedy
greg wrote: George Sakkis wrote: Don't worry, it's not obvious to *anyone* new to Python (and many not- so-new for that matter). That's by no means certain, because we only hear from the people who guessed the wrong way. We have no way of knowing how many people guessed the right way. I did

Re: initialization in argument definitions

2008-11-22 Thread Marc 'BlackJack' Rintsch
On Sun, 23 Nov 2008 13:13:11 +1300, greg wrote: > George Sakkis wrote: > >> Don't worry, it's not obvious to *anyone* new to Python (and many not- >> so-new for that matter). > > That's by no means certain, because we only hear from the people who > guessed the wrong way. We have no way of knowi

Re: initialization in argument definitions

2008-11-22 Thread Aaron Brady
On Nov 21, 3:25 pm, Brentt <[EMAIL PROTECTED]> 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 funct

Re: initialization in argument definitions

2008-11-22 Thread greg
George Sakkis wrote: Don't worry, it's not obvious to *anyone* new to Python (and many not- so-new for that matter). That's by no means certain, because we only hear from the people who guessed the wrong way. We have no way of knowing how many people guessed the right way. -- Greg -- http://m

Re: initialization in argument definitions

2008-11-21 Thread Terry Reedy
George Sakkis wrote: On Nov 21, 4:25 pm, Brentt <[EMAIL PROTECTED]> 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. Don't worry, it's not obvio

Re: initialization in argument definitions

2008-11-21 Thread Steven D'Aprano
On Fri, 21 Nov 2008 13:25:45 -0800, Brentt wrote: > 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. Because you haven't told the function to initializ

Re: initialization in argument definitions

2008-11-21 Thread Egon Frerich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brentt schrieb: | 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 defi

Re: initialization in argument definitions

2008-11-21 Thread Terry Reedy
Brentt 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 de

Re: initialization in argument definitions

2008-11-21 Thread John Machin
On Nov 22, 8:25 am, Brentt <[EMAIL PROTECTED]> 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 funct

Re: initialization in argument definitions

2008-11-21 Thread George Sakkis
On Nov 21, 4:25 pm, Brentt <[EMAIL PROTECTED]> 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. Don't worry, it's not obvious to *anyone* new

Re: initialization in argument definitions

2008-11-21 Thread Chris Rebert
On Fri, Nov 21, 2008 at 1:25 PM, Brentt <[EMAIL PROTECTED]> 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 d