Lines Matching +full:bad +full:- +full:build +full:- +full:check
13 It can be enabled using the :option:`-X dev <-X>` command line option or by
16 See also :ref:`Python debug build <debug-build>`.
24 PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python3 -W default -X faulthandler
28 * Add ``default`` :ref:`warning filter <describing-warning-filters>`. The
37 filters <describing-warning-filters>`.
39 It behaves as if the :option:`-W default <-W>` command line option is used.
41 Use the :option:`-W error <-W>` command line option or set the
45 * Install debug hooks on memory allocators to check for:
65 It behaves as if the :option:`-X faulthandler <-X>` command line option is
69 * Enable :ref:`asyncio debug mode <asyncio-debug-mode>`. For example,
75 * Check the *encoding* and *errors* arguments for string encoding and decoding
94 The Python Development Mode does not prevent the :option:`-O` command line
129 .. code-block:: shell-session
136 .. code-block:: shell-session
138 $ python3 -X dev script.py README.txt
140 …:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' encoding='UTF-8'>
147 .. code-block:: shell-session
149 $ python3 -X dev -X tracemalloc=5 script.py README.rst
151 …:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' encoding='UTF-8'>
168 expected; it can cause severe issues upon exiting Python. It is bad in
173 Bad file descriptor error example
191 .. code-block:: shell-session
196 The Python Development Mode shows a :exc:`ResourceWarning` and logs a "Bad file
199 .. code-block:: shell-session
203 …y:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script.py' mode='r' encoding='UTF-8'>
206 Exception ignored in: <_io.TextIOWrapper name='script.py' mode='r' encoding='UTF-8'>
210 OSError: [Errno 9] Bad file descriptor
213 finalizer tries to close the file descriptor again, it fails with the ``Bad