Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(0)  |  Derive(0)  |  Import(7)
A metaclass for sharing instances.
    
For example, if you have a class like this:

    class Grokker(object):
        
        __metaclass__ = caching.CachedType
        
        def __init__(self, a, b=2):
            self.a = a(more...)

src/p/y/python_toolbox-0.6.11/source_py3/python_toolbox/caching/__init__.py   python_toolbox(Download)
 
from .decorators import cache
from .cached_type import CachedType
from .cached_property import CachedProperty

src/p/y/python_toolbox-0.6.11/source_py2/python_toolbox/caching/__init__.py   python_toolbox(Download)
 
from .decorators import cache
from .cached_type import CachedType
from .cached_property import CachedProperty

src/p/y/python_toolbox-HEAD/source_py3/python_toolbox/caching/__init__.py   python_toolbox(Download)
 
from .decorators import cache
from .cached_type import CachedType
from .cached_property import CachedProperty

src/p/y/python_toolbox-HEAD/source_py2/python_toolbox/caching/__init__.py   python_toolbox(Download)
 
from .decorators import cache
from .cached_type import CachedType
from .cached_property import CachedProperty

src/g/a/GarlicSim-HEAD/garlicsim/garlicsim/general_misc/caching/__init__.py   GarlicSim(Download)
 
from .cache import cache
from .cached_type import CachedType
from .cached_property import CachedProperty

src/g/a/garlicsim_py3-0.6.3/garlicsim/general_misc/caching/__init__.py   garlicsim_py3(Download)
 
from .cache import cache
from .cached_type import CachedType
from .cached_property import CachedProperty

src/g/a/garlicsim-0.6.3/garlicsim/general_misc/caching/__init__.py   garlicsim(Download)
 
from .cache import cache
from .cached_type import CachedType
from .cached_property import CachedProperty