Comments missing in read-only mode
Created originally on Bitbucket by RomeshA (Romesh Abeysuriya)
When I load a workbook using openpyxl.load_workbook(...,read_only=True)
the ReadOnlyCell
objects don't contain any comment attribute, so I get AttributeError: 'ReadOnlyCell' object has no attribute 'comment'
if I try to access say cell.comment
. The same code runs fine with read_only=False
. I was wondering if there is a particular reason why comments aren't read in read-only mode?