Skip to content

Flush the pager's stdin after each write#3274

Closed
felmonon wants to merge 2 commits intopallets:mainfrom
felmonon:fix/pager-incremental-flush
Closed

Flush the pager's stdin after each write#3274
felmonon wants to merge 2 commits intopallets:mainfrom
felmonon:fix/pager-incremental-flush

Conversation

@felmonon
Copy link
Copy Markdown

Summary

  • flush the pager stdin after each write so slow generators stream output incrementally
  • add a regression test that checks the first line reaches the pager before the generator yields the second line

Testing

  • PYTHONPATH=src pytest tests/test_utils.py

Closes #3242

@davidism davidism closed this Mar 19, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flush stdin after writing to a pager

2 participants