Interning own classes like strings for speed and size?
Ulrich Eckhardt
doomster at knuut.de
Mon Dec 27 07:12:53 EST 2010
Daniel Fetchinson wrote:
> I believe what you are looking for is (some variant of) the singleton
> pattern:
>
> http://en.wikipedia.org/wiki/Singleton_pattern
Actually, no. What I want is the flyweight pattern instead:
http://en.wikipedia.org/wiki/Flyweight_pattern
...but thank you for the approach of looking for a suitable pattern!
Cheers!
Uli
More information about the Python-list
mailing list