parameters: (closeables)
return_statement: return results
docstring: Return the result of closing every given object.
docstring_summary: Return the result of closing every given object.
docstring_tokens: Return the result of closing every given object .
function: def close_all(closeables):
      """Return the result of closing every given object."""
      results = []
      for obj in closeables:
          try:
              obj.close()
          except Exception as exc:
              results.append((obj, exc))
          else:
              results.append((obj, None))
      return results
function_tokens: def close_all ( closeables ) : results = [ ] for obj in closeables : try : obj . close ( ) except Exception as exc : results . append ( ( obj , exc ) ) else : results . append ( ( obj , None ) ) return results