]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: devmode: add -Xdev option to example (#106253)
authorSimone Rubino <daemo00@gmail.com>
Sun, 16 Jul 2023 07:29:58 +0000 (09:29 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 07:29:58 +0000 (16:29 +0900)
Doc/library/devmode.rst

index 977735990ffe92ef747c5a072f5dd3c0eb9557e8..b2bad48a07e27ec0a430e461593046a53140a37a 100644 (file)
@@ -198,7 +198,7 @@ descriptor" error when finalizing the file object:
 
 .. code-block:: shell-session
 
-    $ python script.py
+    $ python -X dev script.py
     import os
     script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script.py' mode='r' encoding='UTF-8'>
       main()