Skip to content

gh-82626: Schedule removal of bool used as file descriptor#145469

Open
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:deprecate_bool_fd
Open

gh-82626: Schedule removal of bool used as file descriptor#145469
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:deprecate_bool_fd

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 3, 2026

@vstinner
Copy link
Member Author

vstinner commented Mar 3, 2026

Since Python 3.13, Python emits a DeprecationWarning when a boolean value is used as a file descriptor. I propose to schedule the removal in Python 3.18 of bool support when a file descriptor is expected. So the feature is deprecated for 5 releases (3.13 to 3.17), as recommended by PEP 387.

cc @serhiy-storchaka @pitrou

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

Labels

awaiting core review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant