From 2acfad9d57a5f4f184410b438ca4432e47ed99dc Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 5 Mar 2026 12:32:32 +0100 Subject: [PATCH] gh-82626: Schedule removal of bool used as file descriptor (#145469) --- Doc/deprecations/pending-removal-in-3.18.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/deprecations/pending-removal-in-3.18.rst b/Doc/deprecations/pending-removal-in-3.18.rst index 3e7992194784..eb42fe9919ea 100644 --- a/Doc/deprecations/pending-removal-in-3.18.rst +++ b/Doc/deprecations/pending-removal-in-3.18.rst @@ -1,6 +1,9 @@ Pending removal in Python 3.18 ------------------------------ +* No longer accept a boolean value when a file descriptor is expected. + (Contributed by Serhiy Storchaka in :gh:`82626`.) + * :mod:`decimal`: * The non-standard and undocumented :class:`~decimal.Decimal` format -- 2.47.3