Re: [Tutor] calling a method within a function

2010-12-08 Thread ALAN GAULD
> I understand... but don't blame me if it hurts your head ;) First a few comments. Theres an awful lot of superfluous "stuff" in there that would make it much easier to read and work with. The docstring does not appear to be accurate and there are about 30 lines of commented code. Do you use

Re: [Tutor] calling a method within a function

2010-12-08 Thread John
I understand... but don't blame me if it hurts your head ;) The class is here: http://python.pastebin.com/gPpep50Y The function is here: http://python.pastebin.com/faK0vZ8U The issue is with the 'reflectance' method of the FlightData class (line 76). You can see in the class definition I now jus

Re: [Tutor] calling a method within a function

2010-12-07 Thread Alan Gauld
"John" wrote I have a strange problem with a piece of code I've written. It's a bit overly complicated to make an example with, but the gist is below. But in the example below, it works. However, in my example, when I call the method from within the function, it returns something other than

Re: [Tutor] calling a method within a function

2010-12-07 Thread Adam Bark
On 07/12/10 22:36, John wrote: Hello, I have a strange problem with a piece of code I've written. It's a bit overly complicated to make an example with, but the gist is below. But in the example below, it works. However, in my example, when I call the method from within the function, it returns

[Tutor] calling a method within a function

2010-12-07 Thread John
Hello, I have a strange problem with a piece of code I've written. It's a bit overly complicated to make an example with, but the gist is below. But in the example below, it works. However, in my example, when I call the method from within the function, it returns something other than what I expec