Unit testing type comparison

2008-08-02 Thread Mike Wyatt
I have a problem where type comparisons don't work in a second module when unit tests in the first module are run. In the example below, class Test is declared in one.py. When one.py is executed, it calls a method in two.py that imports Test from one.py. The problem is that the Test object passe

Re: Package organization

2006-07-25 Thread Mike Wyatt
You read me like a book :)  I just moved from C# a few months ago, and I played with C++ for a while before that. Seriously though, for some of my more complicated subsystems (graphics, for example), putting all the classes in one module seems excessive.  Right now that subsystem has around 10

Package organization

2006-07-15 Thread Mike Wyatt
I've been playing around with Python for a few months now, and I just recently started looking at packages to organize my growing project. So far, I've been organizing my application into one class per module. This has been working pretty well. For example, I simply "import timer", then use