Difference between __init__ (again) and nothing ...

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Tue Jan 2 05:46:52 EST 2007


What's the difference between using __init__ and using nothing,
as the examples below.

<Python-1>
class cpu:
   PC = 4


<Python-2>
class cpu:
   def __init__:
     self.PC = 4

thanks,
Stef Mientki



More information about the Python-list mailing list