What do you call a class not intended to be instantiated

Ben Finney bignose+hates-spam at benfinney.id.au
Mon Sep 22 05:19:57 EDT 2008


Steven D'Aprano <steven at REMOVE.THIS.cybersource.com.au> writes:

> I don't want the objects to share state. I'm not exactly sure what I
> said that has given so many people the impression that I do.

This:

Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:

> Essentially, the class is used as a function that keeps state from
> one call to the next.

Perhaps if you say what you want that isn't provided by any of a
function, a module, or a class. Specifically, what state you want to
track, and why it's so important that the state not be available to
the instances.

-- 
 \       “I love and treasure individuals as I meet them, I loathe and |
  `\     despise the groups they identify with and belong to.” —George |
_o__)                                                     Carlin, 2007 |
Ben Finney



More information about the Python-list mailing list