Optional parameter object re-used when instantiating multiple objects

Aaron Brady castironpi at gmail.com
Fri Nov 21 11:33:59 CET 2008


On Nov 21, 4:24 am, alex23 <wuwe... at gmail.com> wrote:
> On Nov 21, 7:49 pm, Aaron Brady <castiro... at gmail.com> wrote:
>
> > On Nov 20, 11:26 pm, alex23 <wuwe... at gmail.com> wrote:
>
> > > On Nov 21, 10:07 am, Aaron Brady <castiro... at gmail.com> wrote:
>
> > > > Why, I would expect the interpreter to define the functions when it
> > > > first hits the def, that is, at the point of definition.
>
> > > Then why are you arguing that the parameters should be re-defined at
> > > the point of calling?
>
> > Hmm.  You have conflated defining the function with defining the
> > parameters.
>
> No, I think I've made the mistake of joining yet another pointless
> thread arguing about semantics.

I was making the case that the options were about the same.  Then you
had some questions.

I said, I would expect the interpreter to define the functions at a
certain time.

You asked, why are you arguing that the parameters should be re-
defined at a different time.

You assumed that defining a function and defining its parameters
necessarily happen at the same time.  Not so.



More information about the Python-list mailing list