visidata icon indicating copy to clipboard operation
visidata copied to clipboard

[sas-] make XptSheet rows be list instead of tuple

Open midichef opened this issue 3 months ago • 0 comments

Currently XptSheet in loaders/sas.py produces rows that are tuples.

That's undesirable because as @saulpw pointed out recently, rows can't be edited if they are tuples. And also because selecting one row may cause other rows to be selected if they are interned tuples, that have the same values and ID. This PR converts the tuples to lists.

to reproduce: pip install xport==2.0.2 download brakes.xpt vd brakes.xpt then inspect any row with ^Y for pyobj-row, the status bar will say tuple.

midichef avatar Mar 27 '24 06:03 midichef