Charlie Nolan wrote:
The hybrid would put the functionality into the naked functions, with the class essentially acting as a "make this sane" wrapper around the complex parts of the naked functions.
Or the other way around -- implement the functionality as a class, and provide one or more naked functions to make it easier to use in the simple cases. This is the approach used in various places in the stdlib, e.g. re and pickle. -- Greg