I've been trying to work around a multiple inheritance issue (the diamond
problem that Python 2.2 solves) with Cheetah, and thought of using
delegation instead of inheritance.
My first attempt failed because line 183 of ServletFactory is:
assert issubclass(theClass, Servlet)
After commenting out the assertion, I find that delegation works! Now, if
only Python had some nice syntactic sugar for auto-delegation....
Anyway, I'd like to argue for the removal of the assertion in
ServletFactory, since it is denying use of a very powerful, and arguably
better technique than inheritance. In any case, assertions can be optimized
away in .pyo files, so that the presence of the assertion statement is of
questionable value...
...Edmund.
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss