Open zerothi opened 1 year ago
In this regard it might be useful to remove the _line
and use some kind of stack for the positions at each with
invocation.
stack = Stack()
stack.push(self.fh.tell())
self.fh.seek(0)
self.fh.seek(stack.pop())
or similar.
Describe the feature Currently nested openings of files are cumbersome.
It would be great if the (ascii) siles allows to step arbitrarily in the files.
Something like:
it would ease lots of the functionality around, and especially output files where other settings in the files determine whether we can find certain stuff in them. (settings etc.)