Skip to content

fix: create a fresh for_in iterator for each subscription - #868

Open
AlvaroBalbin wants to merge 1 commit into
ReactiveX:masterfrom
AlvaroBalbin:fix/audit-ReactiveX-RxPY-74f5d40341f8
Open

AlvaroBalbin wants to merge 1 commit into
ReactiveX:masterfrom
AlvaroBalbin:fix/audit-ReactiveX-RxPY-74f5d40341f8

Conversation

@AlvaroBalbin

@AlvaroBalbin AlvaroBalbin commented Nov 2, 2026 •

Copy link
Copy Markdown

I fixed for_in sharing an exhausted iterator by creating the mapped iterator separately for each subscription, with AI assistance. I preserved the admitted regression unchanged and verified the repository's lint and type checks, and source and wheel builds.

The controller verified the unchanged regression failing before the fix and passing afterward. The full pytest suite passed locally (1717 passed, 10 skipped). All required repository policy checks passed. The fork CI gate passed on commit 6ff74e4; upstream CI is awaiting maintainer approval.

AI-assisted contribution using OpenAI Codex.

@@ -0,0 +1,84 @@
"""AI-assisted preservation controls for for_in's iterable semantics."""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is not helpful, please remove

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 93.851% (+0.01%) from 93.841% — AlvaroBalbin:fix/audit-ReactiveX-RxPY-74f5d40341f8 into ReactiveX:master

@dbrattli

dbrattli commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thank you for fixing. Please move the tests to test_forin.py, we do not need 2 more test files for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants