Skip to content

Commit c52dbb8

Browse files
committed
Tweak example
1 parent c0dc77f commit c52dbb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/document.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class Document(Base):
6363
c1.paragraphs.append(Paragraph(contents="More..."))
6464

6565
print(doc)
66+
print(doc.sections[0].paragraphs[0].contents)
67+
print(doc.sections[0].paragraphs[0].__getattribute__("contents"))
6668

6769
doc.to_json_file("document.json")
6870
doc.to_yaml_file("document.yaml")

0 commit comments

Comments
 (0)