def WriteManyToPath ( objs , filepath ) : with io . open ( filepath , mode = "w" , encoding = "utf-8" ) as filedesc : WriteManyToFile ( objs , filedesc )
python bson to file
Serializes and writes given Python objects to a multi - document YAML file .
def WriteManyToPath(objs, filepath):
  """Serializes and writes given Python objects to a multi-document YAML file.

  Args:
    objs: An iterable of Python objects to serialize.
    filepath: A path to the file into which the object is to be written.
  """
  with io.open(filepath, mode="w", encoding="utf-8") as filedesc:
    WriteManyToFile(objs, filedesc)