def available_compilers(self):
    'Facts about available compilers.'
    self.gen.h2('Available compilers')
    compilers = self.possible_compilers
    compiler_versions = collections.defaultdict((lambda : set()))
    for compiler in compilers:
        compiler_versions[compiler.name].add(compiler.version)
    for compiler in sorted(compiler_versions):
        for v in sorted(compiler_versions[compiler]):
            self.gen.fact(fn.compiler_version(compiler, v))
        self.gen.newline()
Facts about available compilers.
def available_compilers(self):
    
    self.gen.h2('Available compilers')
    compilers = self.possible_compilers
    compiler_versions = collections.defaultdict((lambda : set()))
    for compiler in compilers:
        compiler_versions[compiler.name].add(compiler.version)
    for compiler in sorted(compiler_versions):
        for v in sorted(compiler_versions[compiler]):
            self.gen.fact(fn.compiler_version(compiler, v))
        self.gen.newline()