def bits (self):
		value = int(self)
		for bit in self.names.keys():
			if value & bit:
				yield self.names[bit]
				value -= bit
		if value:
			yield self.names.get(self,'unknown %s type %ld' % (self.NAME,long(self)))
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/protocol/resource.py/BitResource.bits/original