def __new__(cls, name, module=None):
    """Make sure there is only one instance per source (file)."""
    from .module import module as M
    module = module or M.current
    qname = module.qname(name)
    if qname not in cls._instances:
        cls._instances[qname] = object.__new__(cls)
    return cls._instances[qname]
