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
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:
>
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
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