mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-82626: Emit a warning when bool is used as a file descriptor (GH-111275)
This commit is contained in:
parent
09096a1647
commit
652fbf88c4
11 changed files with 75 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue