HF RL Explorer

Task: Fix OSError in Line-Based File Position Tracking

Task: Fix OSError in Line-Based File Position Tracking: a task in Terminal-Lego-15k (Harbor dataset). You need to fix a Python class that implements a line-based tell() function for file position tracking. The current implementation raises an OSError: telling position disabled by next() call when…

The task

You need to fix a Python class that implements a line-based `tell()` function for file position tracking. The current implementation raises an `OSError: telling position disabled by next() call` when trying to get the file position while iterating over the file.

Part of PrimeIntellect/Terminal-Lego-15k.