From: Victor Stinner Date: Thu, 5 Mar 2026 11:32:32 +0000 (+0100) Subject: gh-82626: Schedule removal of bool used as file descriptor (#145469) X-Git-Tag: v3.15.0a7~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2acfad9d57a5f4f184410b438ca4432e47ed99dc;p=thirdparty%2FPython%2Fcpython.git gh-82626: Schedule removal of bool used as file descriptor (#145469) --- 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