Geoff wrote:

>That's redundant.  If this method is in Servlet itself, then simply:
>
>   def isServletSubclass(self):
>        return 1

Duh. Sorry!

Does ths same thing.


>My rationale is that this is a fixed property of a particular class, so it
>should be a class attribute, rather than a method.  Or another way of
>putting it is that you shouldn't have to instantiate the class to find out
>if it's useable as a servlet.


I thought of using attributes instead too. I just assumed (wrongly) that
there was some reason for wanting to use a method instead. I like this
suggestion very much.

...Edmund.


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to