Re: [Tutor] A beginner having problems with inheritance

2014-07-10 Thread Sydney Shall
On 09/07/2014 20:17, Danny Yoo wrote: My error was simply that I inadvertently used the same name for a method (function) in the derived class that I had already used in the parent class. The result was then a very obscure error because the wrong calculation was performed and later on an array wa

Re: [Tutor] A beginner having problems with inheritance

2014-07-09 Thread Danny Yoo
> My error was simply that I inadvertently used the same name for a method > (function) in the derived class that I had already used in the parent class. > The result was then a very obscure error because the wrong calculation was > performed and later on an array was empty. > Fortunately, thanks t

Re: [Tutor] A beginner having problems with inheritance

2014-07-09 Thread Sydney Shall
On 06/07/2014 23:06, Danny Yoo wrote: My apologies to the tutors. I have identified my error, which was predictably elementary. With many thanks, By the way, can you say what your conceptual error was or give an example? It might help the other folks here who are learning and who may be making

Re: [Tutor] A beginner having problems with inheritance

2014-07-06 Thread Danny Yoo
> My apologies to the tutors. > I have identified my error, which was predictably elementary. > With many thanks, By the way, can you say what your conceptual error was or give an example? It might help the other folks here who are learning and who may be making a similar mistake. (And I'm curi

Re: [Tutor] A beginner having problems with inheritance

2014-07-02 Thread Sydney Shall
On 01/07/2014 19:04, Sydney Shall wrote: I am a beginner and I have always had problems with inheritance. I can get inheritance to work with very simple classes. But with more complex classes, I find that inheritance seems to work for simple variables, but I cannot get it to work with lists or

Re: [Tutor] A beginner having problems with inheritance

2014-07-01 Thread Alan Gauld
On 01/07/14 18:04, Sydney Shall wrote: But with more complex classes, I find that inheritance seems to work for simple variables, but I cannot get it to work with lists or arrays. Specifically my problem is to access a numpy array in the parent class, from within the derived class. Caveat: I k

[Tutor] A beginner having problems with inheritance

2014-07-01 Thread Sydney Shall
I am a beginner and I have always had problems with inheritance. I can get inheritance to work with very simple classes. But with more complex classes, I find that inheritance seems to work for simple variables, but I cannot get it to work with lists or arrays. Specifically my problem is to acce