def _getSlotValue(name, slotData, default=None):
 for slotFrame in slotData[::(-1)]:
  if ((slotFrame is not None) and (name in slotFrame)):
   return slotFrame[name]
 else:
  if (default is not None):
   return default
  raise UnfilledSlot(name)

def _getSlotValue ( name , slotData , default = None ) : for slotFrame in slotData [ : : ( - 1 ) ] : if ( ( slotFrame is not None ) and ( name in slotFrame ) ) : return slotFrame [ name ] else : if ( default is not None ) : return default raise UnfilledSlot ( name )
find the value of the named slot in the given stack of slot data .