code: def list_zip(archive, compression, cmd, verbosity, interactive):
      
      try:
          with zipfile.ZipFile(archive, "r") as zfile:
              for name in zfile.namelist():
                  if verbosity >= 0:
                      print(name)
      except Exception as err:
          msg = "error listing %s: %s" % (archive, err)
          raise util.PatoolError(msg)
      return None
docs: List member of a ZIP archive with the zipfile Python module.