count property

RevisionGroupCollection.count property

Returns the number of revision groups in the collection.

@property
def count(self) -> int:
    ...

Examples

Shows how to print info about a group of revisions in a document.

doc = aw.Document(file_name=MY_DIR + 'Revisions.docx')
self.assertEqual(7, doc.revisions.groups.count)
for group in doc.revisions.groups:
    print(f'Revision author: {group.author}; Revision type: {group.revision_type} \n\tRevision text: {group.text}')

See Also