Skip to content

run_csv_view reads beyond exhausted file handle #43

Closed

Description

@AkshajSinghal

rows = list(islice(reader, 50)) exhausts the csv.reader, then remaining = sum(1 for _ in reader) iterates the same already-exhausted iterator, always yielding 0. The caption ...and N more rows will never appear, silently hiding truncated data with no user feedback.

Activity

  1. added
    bug
    good first issue
    on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions