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

Fredrik Lundh fredrik at pythonware.com
Sun Jun 11 18:23:21 EDT 2006


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>




More information about the Python-list mailing list