direct initialization of class attributes vs. declarations w/in __init__

digitalorganics at gmail.com digitalorganics at gmail.com
Mon Jun 12 05:04:43 CEST 2006


Fredrik Lundh wrote:
> digitalorganics at gmail.com wrote:
>
> > Output from laptop comp.:
> >
> > 1
> > 10
> > 2
> > 10
> > 3
> > 10
>
> so how are you entering and running the code on your laptop ?
>
> what happens if you set the class attribute to 100 instead of 10 ?
>
> </F>

You can see my other post which I just sent but, I was using PythonWin:

1. type code in editor
2. hit run
3. observe output in interactive window




More information about the Python-list mailing list