Classes and global statements

2006-07-03 Thread Sheldon
Hi, I have a series of classes that are all within the same file. Each is called at different times by the main script. Now I have discovered that I need several variables returned to the main script. Simple, right? I thought so and simply returned the variables in a tuple: (a,b,c,d,e) = obj.metho

Re: Classes and global statements

2006-07-03 Thread Simon Forman
Sheldon wrote: > Hi, > > I have a series of classes that are all within the same file. Each is > called at different times by the main script. Now I have discovered > that I need several variables returned to the main script. Simple, > right? I thought so and simply returned the variables in a tupl

Re: Classes and global statements

2006-07-03 Thread Scott David Daniels
Sheldon wrote: > Hi, > > I have a series of classes that are all within the same file. Each is > called at different times by the main script. Now I have discovered > that I need several variables returned to the main script. Simple, > right? I thought so and simply returned the variables in a tup

Re: Classes and global statements

2006-07-03 Thread Sheldon
Simon Forman skrev: > Sheldon wrote: > > Hi, > > > > I have a series of classes that are all within the same file. Each is > > called at different times by the main script. Now I have discovered > > that I need several variables returned to the main script. Simple, > > right? I thought so and sim

Re: Classes and global statements

2006-07-03 Thread Sheldon
Scott David Daniels skrev: > Sheldon wrote: > > Hi, > > > > I have a series of classes that are all within the same file. Each is > > called at different times by the main script. Now I have discovered > > that I need several variables returned to the main script. Simple, > > right? I thought so