shortersubclassing

Right now you have to do:

#from something import something #extends something

That first line feels very redundant. Of course, sometimes that first import statement won't look quite like that, but 90%+ it will. So there has to be some way of saying "extend this but don't import it".

-- IanBicking - 07 Nov 2001

How about allowing #extends to do the import itself if it gets an error? But how far do you take it? Are all these acceptable?

#extends MyModule.MyClass  =>  #import MyModule
#extends MyClass                      =>  #from MyClass import MyClass
#extends Cheetah.Tools.WebwareMixin  => #from Cheetah.Tools import WebwareMixin

-- MikeOrr - 16 Dec 2001


Implementation will be like the "#extends MyClass" example above. The other two examples are unusual cases, and the user can jolly well write the #import or move his module.

-- MikeOrr - 17 Apr 2002