[Python-checkins] Doc: devmode: add -Xdev option to example (GH-106253)

methane webhook-mailer at python.org
Sun Jul 16 07:43:59 EDT 2023


https://github.com/python/cpython/commit/77104f551158cd399071e0d92b165d02569be6d7
commit: 77104f551158cd399071e0d92b165d02569be6d7
branch: 3.11
author: Inada Naoki <songofacandy at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2023-07-16T11:43:56Z
summary:

Doc: devmode: add -Xdev option to example (GH-106253)

(cherry picked from commit 83bd568d2b57337a91ef046c1f52f9ebb03a7803)

Co-authored-by: Simone Rubino <daemo00 at gmail.com>

files:
M Doc/library/devmode.rst

diff --git a/Doc/library/devmode.rst b/Doc/library/devmode.rst
index 44e7d4f541d81..fd82b3a5b8631 100644
--- a/Doc/library/devmode.rst
+++ b/Doc/library/devmode.rst
@@ -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()



More information about the Python-checkins mailing list