Re: Difference between __init__ (again) and nothing ...

2007-01-02 Thread Bruno Desthuilliers
Stef Mientki a écrit : > Marc 'BlackJack' Rintsch wrote: > >> In <[EMAIL PROTECTED]>, Stef Mientki wrote: >> >>> What's the difference between using __init__ and using nothing, >>> as the examples below. >>> >>> class cpu: >>>PC = 4 >> >> >> This is a *class attribute*. It's the same for all

Re: Difference between __init__ (again) and nothing ...

2007-01-02 Thread Stef Mientki
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Stef Mientki wrote: > >> What's the difference between using __init__ and using nothing, >> as the examples below. >> >> class cpu: >>PC = 4 > > This is a *class attribute*. It's the same for all instances of `cpu`. > >> class cpu: >

Re: Difference between __init__ (again) and nothing ...

2007-01-02 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Stef Mientki wrote: > What's the difference between using __init__ and using nothing, > as the examples below. > > class cpu: >PC = 4 This is a *class attribute*. It's the same for all instances of `cpu`. > class cpu: >def __init__: > self.PC = 4 This is a

Difference between __init__ (again) and nothing ...

2007-01-02 Thread Stef Mientki
What's the difference between using __init__ and using nothing, as the examples below. class cpu: PC = 4 class cpu: def __init__: self.PC = 4 thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list