Re: python class instantiation

2006-10-23 Thread Paul McGuire
"Éric Daigneault" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It is humbling to see how simple yet powerfull python`s view on things > is +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: python class instantiation

2006-10-23 Thread Gabriel Genellina
At Monday 23/10/2006 17:56, Éric Daigneault lists wrote: >When creating a class with data members but no __init__ method. Python >deals differently with data members that are muatable and immutables. See specially items 4 and 5. And

Re: python class instantiation

2006-10-23 Thread Chetan
Éric Daigneault wrote: >Got a question for you all... > >I noticed a behaviour in python class creation that is strange, to say the >least. > >When creating a class with data members but no __init__ method. Python deals >differently with data members that are muatable and immutables. > >Ex: >class

Re: python class instantiation

2006-10-23 Thread Éric Daigneault
Fredrik Lundh wrote: > Éric Daigneault lists wrote: > > >> When creating a class with data members but no __init__ method. Python >> deals differently with data members that are muatable and immutables. >> > > no, it doesn't. it's your code that deals with them in different ways, > not

Re: python class instantiation

2006-10-23 Thread Fredrik Lundh
Éric Daigneault lists wrote: > When creating a class with data members but no __init__ method. Python > deals differently with data members that are muatable and immutables. no, it doesn't. it's your code that deals with them in different ways, not Python. > Ex: > class A(object): > stri

python class instantiation

2006-10-23 Thread Éric Daigneault lists
Got a question for you all... I noticed a behaviour in python class creation that is strange, to say the least. When creating a class with data members but no __init__ method. Python deals differently with data members that are muatable and immutables. Ex: class A(object): stringData = "W