singleton decorator

Erik Max Francis max at alcyone.com
Mon Aug 7 20:24:30 EDT 2006


Andre Meyer wrote:

> Am I missing something here? What is the preferred pythonic way of 
> implementing singleton elegantly?

Create a class and then derive from it.  There are examples on the Cookbook.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   I would have liked to have seen Montana.
    -- Capt. Vasily Borodin



More information about the Python-list mailing list