def part_lister(mpupload, part_number_marker=None):
 more_results = True
 part = None
 while more_results:
  parts = mpupload.get_all_parts(None, part_number_marker)
  for part in parts:
   (yield part)
  part_number_marker = mpupload.next_part_number_marker
  more_results = mpupload.is_truncated

def part_lister ( mpupload , part_number_marker = None ) : more_results = True part = None while more_results : parts = mpupload . get_all_parts ( None , part_number_marker ) for part in parts : ( yield part ) part_number_marker = mpupload . next_part_number_marker more_results = mpupload . is_truncated
a generator function for listing parts of a multipart upload .