summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-02-05 20:51:11 (GMT)
committerGitHub <noreply@github.com>2024-02-05 20:51:11 (GMT)
commit652fbf88c4c422ff17fefd4dcb5e06b5c0e26e74 (patch)
tree61b36dd4f458619c68bbee592bade7ed18993dda /Doc
parent09096a1647913526a3d4fa69a9d2056ec82a8f37 (diff)
downloadcpython-652fbf88c4c422ff17fefd4dcb5e06b5c0e26e74.zip
cpython-652fbf88c4c422ff17fefd4dcb5e06b5c0e26e74.tar.gz
cpython-652fbf88c4c422ff17fefd4dcb5e06b5c0e26e74.tar.bz2
gh-82626: Emit a warning when bool is used as a file descriptor (GH-111275)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.13.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 0770e28..9bac36b 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -145,6 +145,11 @@ Other Language Changes
is rejected when the global is used in the :keyword:`else` block.
(Contributed by Irit Katriel in :gh:`111123`.)
+* Many functions now emit a warning if a boolean value is passed as
+ a file descriptor argument.
+ This can help catch some errors earlier.
+ (Contributed by Serhiy Storchaka in :gh:`82626`.)
+
* Added a new environment variable :envvar:`PYTHON_FROZEN_MODULES`. It
determines whether or not frozen modules are ignored by the import machinery,
equivalent of the :option:`-X frozen_modules <-X>` command-line option.