# Get Comparison Result as a Document Object Retrieve the comparison result as a Document object — including file name, detected changes, and stream — using GroupDocs.Comparison for Python via .NET. [GroupDocs.Comparison for Python via .NET](https://products.groupdocs.com/comparison/python-net) returns a `Document` object from `Comparer.compare()` that exposes the result file name, detected changes, and the result stream. The object model is compatible with Aspose libraries, so you can pass it into downstream processing pipelines. ## Example: Obtain the result Document object {{< tabs "result-document">}} {{< tab "get_result_document_object.py" >}} ```python from groupdocs.comparison import Comparer def get_result_document_object(): with Comparer("./source.docx") as comparer: comparer.add("./target.docx") result_document = comparer.compare("./result.docx") for change in result_document.changes: print(f"Source text: {change.source_text}") print(f"Target text: {change.target_text}\n") if __name__ == "__main__": get_result_document_object() ``` {{< /tab >}} {{< tab "source.docx" >}} {{< tab-text >}} `source.docx` is the source file used in this example. Click [here](https://docs.groupdocs.com/comparison/python-net/_sample_files/developer-guide/comparing-documents/get-result-document-object/source.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "target.docx" >}} {{< tab-text >}} `target.docx` is the target file used in this example. Click [here](https://docs.groupdocs.com/comparison/python-net/_sample_files/developer-guide/comparing-documents/get-result-document-object/target.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "result.docx" >}} ```text Binary file (DOCX, 25 KB) ``` [Download full output](https://docs.groupdocs.com/comparison/python-net/_output_files/developer-guide/comparing-documents/get-result-document-object/get_result_document_object/result.docx) {{< /tab >}} {{< /tabs >}} The result will list source and target text segments for each detected change.