def __new__ (cls, *args):
		key = '//'.join((str(_) for _ in args))
		if Resource.cache.setdefault(cls,{}) in key:
			return Resource.cache[cls][key]
		instance = long.__new__(cls,*args)
		Resource.cache[cls][key] = instance
		return instance
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/protocol/resource.py/Resource.__new__/swapped operands of `in`