|
That's excellent. Thanks. So does that work by inheriting the class "int"? I've only worked with class inheritance for wxPython and it looks like fun. Do you have any quick programming challenges you can think of that involve making inherited classes?
Your solution also solved the problem that it wasn't evaluating boolean expressions properly. I had to add more methods like __gt__, __ge__, to get it to work properly before.
|