def extract_fields(tweet, fields):
 out = []
 for field in fields:
  try:
   _add_field_to_out(tweet, field, out)
  except TypeError:
   raise RuntimeError('Fatal error when extracting fields. Cannot find field ', field)
 return out

def extract_fields ( tweet , fields ) : out = [ ] for field in fields : try : _add_field_to_out ( tweet , field , out ) except TypeError : raise RuntimeError ( 'Fatal error when extracting fields. Cannot find field ' , field ) return out
extract field values from a full tweet and return them as a list .