Horizontal ranges don't work as expected

Issue #803 resolved
Dmitry Chumak created an issue


I've faced a strange issue here. Here's an example for the docs:

Ranges of cells can be accessed using slicing

>>> cell_range = ws['A1':'C2']

But when I'm trying it by myself, I'm getting cells only from one (first) column:

cells = work_sheet['A1':'C2']
print len(cells)
for cell in cells:
    print cell[0]
<Cell u'Sheet1'.A1>
<Cell u'Sheet1'.A2>

Is there something wrong with me, or with the docs?) I'm using the latest avaliable version of the lib - 2.4.5 with Python 2.7.12


Comments (2)

  1. Log in to comment