]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: devmode: add -Xdev option to example (GH-106253)
authorInada Naoki <songofacandy@gmail.com>
Sun, 16 Jul 2023 11:43:56 +0000 (20:43 +0900)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 11:43:56 +0000 (11:43 +0000)
(cherry picked from commit 83bd568d2b57337a91ef046c1f52f9ebb03a7803)

Co-authored-by: Simone Rubino <daemo00@gmail.com>
Doc/library/devmode.rst

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