Re: Accessing class attribute

2013-09-12 Thread Dave Angel
On 12/9/2013 02:15, chandan kumar wrote: > Hi , > > I'm new to python Welcome. I hope you enjoy your time here, and that the language treats you as well as it's treated me. > ,please correct me if there is any thing wrong with the way accessing class attributes. None of the following uses class

Re: Accessing class attribute

2013-09-12 Thread Peter Otten
Peter Otten wrote: > chandan kumar wrote: > >> Hi , >> >> I'm new to python ,please correct me if there is any thing wrong with the >> way accessing class attributes. >> >> Please see the below code .I have inherited confid in ExpectId class, >> changed self.print_msg to Hello. Now inherited

Re: Accessing class attribute

2013-09-11 Thread Peter Otten
chandan kumar wrote: > Hi , > > I'm new to python ,please correct me if there is any thing wrong with the > way accessing class attributes. > > Please see the below code .I have inherited confid in ExpectId class, > changed self.print_msg to Hello. Now inherited confid in TestprintmsgID > clas

Accessing class attribute

2013-09-11 Thread chandan kumar
Hi , I'm new to python ,please correct me if there is any thing wrong with the way accessing class attributes. Please see the below code .I have inherited confid in ExpectId class, changed self.print_msg to Hello. Now inherited confid in TestprintmsgID class.Now I wanted to print self.print