So Alex doesn't like the Singleton pattern.

Laura Creighton lac at cd.chalmers.se
Fri Apr 20 06:35:43 EDT 2001


Why? 

I thought the only reason to get out flyweight was because your program
was a turtle and you have too many objects, callbacks, or both.  Those
objects are likely to be singletons.  Getting out Flyweight is an
indication that the real world has stomped on your clean, elegant, but
woefully inefficient design -- a hack we wouldn't need if we had infinite
memory, cpu speed, or some other resource.

What am I misunderstanding?

Laura Creighton
lac at cd.chalmers.se




More information about the Python-list mailing list