Re: How do I pass a list to a __init__ value/definition?

2006-07-25 Thread ryanshewcraft
> FWIW, always try to reduce code to the minimal runnable snippet > exhibiting the problem, so others have a chance to help you. As a > side-effect, one very often finds the problem while doing so !-) Sorry I can't post to much of the code. Some of what I'm using is grabbing infromation off of

Re: How do I pass a list to a __init__ value/definition?

2006-07-25 Thread ryanshewcraft
Bruno may be right. At some point I've got del self.regressors[fundNumber] which eliminates one of the variables in the list. I guess I figured it would be alright because I thought the program would run in a linear fashion (aside from loops, etc). I use the list in the code above where I dele

Re: How do I pass a list to a __init__ value/definition?

2006-07-25 Thread ryanshewcraft
You guys are right it is getting passed initially. I checked in by printing the self.regressors in the class and it gives the list. But I get the error: TypeError: iteration over non-sequence for def Regress(self): print self.regressors for reg in self.regressors: in

How do I pass a list to a __init__ value/definition?

2006-07-25 Thread ryanshewcraft
Let me start with my disclaimer by saying I'm new to computer programming and have doing it for the past three weeks. I may not be completely correct with all the jargon, so please bear with me. Anyways, I'm writing a function which has a class called "MultipleRegression." I want one of the vari