I was using the following technique in my code:
super = Food
I got the idea of using 'super' from some example I saw. The point is that if you rename the base class, you don't have to "search & replace" your code which is especially time saving if your base class name is a subset of some other name that you use (say 'SuperFood').
I modified the technique by putting the 'super' inside the class so as not to "pollute" the name space of the module.
This obviously breaks down if you have a subclass that does the same thing! "self.super" always returns what the subclass set and you get an infinite loop.
I'll fix this in Webware.
Get latest updates about Open Source Projects, Conferences and News.