

def getPermutation(combination):
    "\n    Small wrapper to omit double creation of identical permutations in filter() method \n    As these instances don't have any reference to session etc. they are actually cacheable globally.\n    "
    key = str(combination)
    if (key in registry):
        return registry[key]
    registry[key] = Permutation(combination)
    return registry[combination]

dataset/ETHPy150Open zynga/jasy/jasy/core/Permutation.py getPermutation/VarMisuse@48/126 `key`->`combination`