diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-12 15:06:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 15:06:47 (GMT) |
commit | 44235041f3b957abd36d3792450c3540aa09e120 (patch) | |
tree | f5a07219352053068a742e62bd75447c22e50aa5 /Doc/using | |
parent | 9d949f7796da612f1b588d18c6f041376992a9fc (diff) | |
download | cpython-44235041f3b957abd36d3792450c3540aa09e120.zip cpython-44235041f3b957abd36d3792450c3540aa09e120.tar.gz cpython-44235041f3b957abd36d3792450c3540aa09e120.tar.bz2 |
bpo-18748: io.IOBase destructor now logs close() errors in dev mode (GH-12786)
In development mode (-X dev) and in debug build, the io.IOBase
destructor now logs close() exceptions. These exceptions are silent
by default in release mode.
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/cmdline.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index bd3cdef..0574336 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -437,6 +437,7 @@ Miscellaneous options * Enable :ref:`asyncio debug mode <asyncio-debug-mode>`. * Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to ``True`` + * :class:`io.IOBase` destructor logs ``close()`` exceptions. * ``-X utf8`` enables UTF-8 mode for operating system interfaces, overriding the default locale-aware mode. ``-X utf8=0`` explicitly disables UTF-8 @@ -465,7 +466,8 @@ Miscellaneous options The ``-X importtime``, ``-X dev`` and ``-X utf8`` options. .. versionadded:: 3.8 - The ``-X pycache_prefix`` option. + The ``-X pycache_prefix`` option. The ``-X dev`` option now logs + ``close()`` exceptions in :class:`io.IOBase` destructor. Options you shouldn't use |