bpo-32043: Rephrase -X dev documentation (#4478) · python/cpython@bc9b6e2 (original) (raw)

`@@ -411,8 +411,10 @@ Miscellaneous options

`

411

411

` nested imports). Note that its output may be broken in multi-threaded

`

412

412

``` application. Typical usage is ``python3 -X importtime -c 'import


`413`

`413`

```  asyncio'``. See also :envvar:`PYTHONPROFILEIMPORTTIME`.

414

``


 * ``-X dev`` enables the "developer mode": enable debug checks at runtime.

415

``

`-

Developer mode:

`

``

414


 * ``-X dev``: enable CPython's "developer mode", introducing additional

``

415

`+

runtime checks which are too expensive to be enabled by default. It should

`

``

416

`+

not be more verbose than the default if the code is correct: new warnings

`

``

417

`+

are only emitted when an issue is detected. Effect of the developer mode:

`

416

418

``

417

419

``` * Warning filters: add a filter to display all warnings ("default"


`418`

`420`

``  action), except of :exc:`BytesWarning` which still depends on the

``

`@@ -441,8 +443,7 @@ Miscellaneous options

`

`441`

`443`

```  The ``-X showalloccount`` option.

442

444

``

443

445

` .. versionadded:: 3.7

`

444

``


 The ``-X importtime``, ``-X dev`` and :envvar:`PYTHONPROFILEIMPORTTIME`

445

``

`-

options.

`

``

446


 The ``-X importtime`` and ``-X dev`` options.

446

447

``

447

448

``

448

449

`Options you shouldn't use

`