Re: Instance factory - am I doing this right?

2010-03-04 Thread eb303
On Mar 3, 6:41 pm, Laszlo Nagy wrote: > This is just an interesting code pattern that I have recently used: > > class CacheStorage(object): >     """Generic cache storage class.""" >     @classmethod >     def get_factory(cls,*args,**kwargs): >         """Create factory for a given set of cache st

Instance factory - am I doing this right?

2010-03-03 Thread Laszlo Nagy
This is just an interesting code pattern that I have recently used: class CacheStorage(object): """Generic cache storage class.""" @classmethod def get_factory(cls,*args,**kwargs): """Create factory for a given set of cache storage creation parameters.""" class CacheStora