def __init__(self, namespace):
<EOL>self.namespace = namespace<EOL>self._entrypoints = {}<EOL>for ep in pkg_resources.iter_entry_points(namespace):<EOL><INDENT>self._entrypoints.setdefault(ep.name, [])<EOL>self._entrypoints[ep.name].append(ep)<EOL><DEDENT>self._epcache = {}<EOL>self._eplist = None<EOL>
Initialize a ``NamespaceCache``.

:param namespace: The namespace to cache.