<div dir="ltr">I call it an obvious misuse and misunderstanding of why you'd use a class in the first place. Either create an instance and not make these things classmethods or just share the stuff in a module-level set of variables. But the instantiating is the best options. Your class attributes might not be globals, but you're still using global state and you should avoid it where you can.<br>
<br><div class="gmail_quote">On Sun, Sep 21, 2008 at 6:39 PM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@remove-this-cybersource.com.au">steve@remove-this-cybersource.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a class which is not intended to be instantiated. Instead of using<br>
the class to creating an instance and then operate on it, I use the class<br>
directly, with classmethods. Essentially, the class is used as a function<br>
that keeps state from one call to the next.<br>
<br>
The problem is that I don't know what to call such a thing! "Abstract<br>
class" isn't right, because that implies that you should subclass the<br>
class and then instantiate the subclasses.<br>
<br>
What do you call such a class?<br>
<br>
<br>
<br>
--<br>
Steven<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Read my blog! I depend on your acceptance of my opinion! I am interesting!<br><a href="http://techblog.ironfroggy.com/">http://techblog.ironfroggy.com/</a><br>Follow me if you're into that sort of thing: <a href="http://www.twitter.com/ironfroggy">http://www.twitter.com/ironfroggy</a><br>

</div>