ReadOnlyWorksheet.cell() raises an error.

Issue #1236 resolved
Alexander Biveynis
created an issue
wb0 = load_workbook('/home/myname/myfile.xlsx', read_only=True)
ws0 = wb0['Sheet1']
ws0.cell(1, 1)

TypeError: unbound method cell() must be called with Worksheet instance as first argument (got int instance instead)

ws0.cell(ws0, 1, 1)

TypeError: unbound method cell() must be called with Worksheet instance as first argument (got ReadOnlyWorksheet instance instead)

Comments (3)

  1. CharlieC

    Python 2.7, right? Probably have to change the way the methods are borrowed from the other class. Worth noting 2.6.x will be the last version to support Python 2.7

  2. Log in to comment