Skip to content

gh-161549: Fix file descriptors leak when re-importing _pyrepl.readline - #161557

Open
Eclips4 wants to merge 3 commits into
python:mainfrom
Eclips4:zipimport-refleak
Open

Eclips4 wants to merge 3 commits into
python:mainfrom
Eclips4:zipimport-refleak

Conversation

@Eclips4

@Eclips4 Eclips4 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Comment thread Lib/_pyrepl/readline.py Resolved
Comment thread Lib/_pyrepl/readline.py
Comment on lines +352 to +353
f_in: int = 0
f_out: int = 1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay, it seems to me that the previous os.dup call was a leftover and doesn’t make sense anymore.

@divya-git03

This comment was marked as low quality.

@Eclips4 Eclips4 added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants