Re: help on object programing

2007-08-17 Thread Scott David Daniels
yadin wrote: > class big(self): > ... > how can i define my variables so that there are valid outside the > class??? Although you did not describe the issue all that well, I _think_ you are referring to the fact that the following two pieces of code behave less like each other than one might suspe

Re: help on object programing

2007-08-17 Thread DouhetSukd
> how can i define my variables so that there are valid outside the > class??? Not to be obnoxious, but your sample code has a number of fairly big conceptual issues (like subclassing self and assigning 32 at the big class level and printing 'list' which is a built-in type). Been there myself -

Re: help on object programing

2007-08-17 Thread Neil Cerutti
On 2007-08-17, yadin <[EMAIL PROTECTED]> wrote: > class big(self): > > x = 32 > list = [] > def inside (self): > > class small(self): # a new class defined inside the first > > y = 348 > list.append(y) # send the value to first list > list.app

Re: help on object programing

2007-08-17 Thread mike
On Aug 17, 11:07 am, yadin <[EMAIL PROTECTED]> wrote: > class big(self): > > x = 32 > list = [] > def inside (self): > > class small(self): # a new class defined inside the first > > y = 348 > list.append(y) # send the value to first list > li

help on object programing

2007-08-17 Thread yadin
class big(self): x = 32 list = [] def inside (self): class small(self): # a new class defined inside the first y = 348 list.append(y) # send the value to first list list.append(x) print list how can i define my variables so that there are