79704922

Date: 2025-07-17 14:00:30
Score: 1
Natty:
Report link

As of 16th June 2025, V1.2.0 of python docx has support for comments! It's very long overdue!

from docx import Document
document = Document()
paragraph = document.add_paragraph("Hello, world!")

comment = document.add_comment(
   runs=paragraph.runs,
   text="I have this to say about that"
   author="Steve Canny",
   initials="SC",
)

https://python-docx.readthedocs.io/en/latest/user/comments.html

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Hon