Accessing an instance of a class from within instance of another class

2010-04-30 Thread Stefan Krastanov
Hello all, I have some knowledge of programing in C++ and I believe that I understand the way one should write programs in Python. But I need some help finding the Right Way for doing a thing. Here is the problem: I have a class (call it Data) that has a number of NumPy arrays and some methods

Re: Accessing an instance of a class from within instance of another class

2010-04-30 Thread Paul Kölle
Am 30.04.2010 13:05, schrieb Stefan Krastanov: Hello all, [snipp] Here is the problem: I have a class (call it Data) that has a number of NumPy arrays and some methods that get useful information from the arrays (math stuff). I have two other classes (called Viewer1 and Viewer2) (they are