Open timon opened 12 years ago
What is the reason you want to protect a worksheet?
It's not about worksheet I want to protect, it's about leaving worksheet in half-initialized state.
When I ask workbook 'Gimme that sheet' I expect to get an object I can work with, and turns out it is not so. The sheet has to be initialized in some special way before anything useful can be done to it, and I think this is against POLA.
so do you have a patch you suggest?
While writing tests for worksheet protection timon@c2351bd3e2 I've found strange issue:
The following code fails:
The following code runs fine due to side effects:
I'm not sure what's correct way to handle this issue — either load all worksheets greedily after workbook is read, or guard all methods with
ensure_rows_read
— both approaches seems to have their positive and negative sides