View Single Post
Old Jun 3rd, 2006, 8:57 AM   #4
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,013
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote