Re: Some Minor questions on Class and Functions

2011-03-20 Thread joy99
On Mar 20, 6:18 pm, Noah Hall wrote: > > class Message: > >    def __init__(self,string1,string2,lenstr1,lenstr2): > >        self.string1="MY" > >        self.string2="NAME" > >        self.lenstr1=lenstr1 > >        self.lenstr2=lenstr2 > > The variables string1 and string2 that you're passing h

Re: Some Minor questions on Class and Functions

2011-03-20 Thread joy99
On Mar 20, 6:18 pm, Noah Hall wrote: > > class Message: > >    def __init__(self,string1,string2,lenstr1,lenstr2): > >        self.string1="MY" > >        self.string2="NAME" > >        self.lenstr1=lenstr1 > >        self.lenstr2=lenstr2 > > The variables string1 and string2 that you're passing h

Re: Some Minor questions on Class and Functions

2011-03-20 Thread Noah Hall
> class Message: >    def __init__(self,string1,string2,lenstr1,lenstr2): >        self.string1="MY" >        self.string2="NAME" >        self.lenstr1=lenstr1 >        self.lenstr2=lenstr2 The variables string1 and string2 that you're passing here are in fact useless. They don't do anything insid

Re: Some Minor questions on Class and Functions

2011-03-20 Thread joy99
On Mar 20, 11:13 am, joy99 wrote: > On Mar 20, 9:39 am, Steven D'Aprano > > > +comp.lang.pyt...@pearwood.info> wrote: > > On Sat, 19 Mar 2011 16:57:58 -0700, joy99 wrote: > > > Dear Group, > > > > I am trying to pose two small questions. > > > > 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010

Re: Some Minor questions on Class and Functions

2011-03-19 Thread joy99
On Mar 20, 9:39 am, Steven D'Aprano wrote: > On Sat, 19 Mar 2011 16:57:58 -0700, joy99 wrote: > > Dear Group, > > > I am trying to pose two small questions. > > > 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. > > 1500 32 bit (Intel)] on win32 Type "copyright", "credits" or

Re: Some Minor questions on Class and Functions

2011-03-19 Thread Steven D'Aprano
On Sat, 19 Mar 2011 16:57:58 -0700, joy99 wrote: > Dear Group, > > I am trying to pose two small questions. > > 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. > 1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" > for more information, on WINXP SP2.

Re: Some Minor questions on Class and Functions

2011-03-19 Thread Benjamin Kaplan
On Sat, Mar 19, 2011 at 7:57 PM, joy99 wrote: > > Dear Group, > > I am trying to pose two small questions. > > 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. > 1500 32 bit (Intel)] on win32 Type "copyright", "credits" or > "license()" for more information, on WINXP SP2. > >

Some Minor questions on Class and Functions

2011-03-19 Thread joy99
Dear Group, I am trying to pose two small questions. 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. 1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information, on WINXP SP2. As I am writing a code for class like the following: IDLE 2.6.