]> granicus.if.org Git - python/commitdiff
Issue #16123: IDLE - deprecate running without a subprocess.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 5 Oct 2012 19:12:44 +0000 (22:12 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 5 Oct 2012 19:12:44 +0000 (22:12 +0300)
Patch by Roger Serwy

Lib/idlelib/PyShell.py
Lib/idlelib/help.txt

index 50d6182ab6010bae377609239472f092df5f63a9..a2f1e866c60c1050134dfaddeb8a7604e4c0af2d 100644 (file)
@@ -1008,7 +1008,10 @@ class PyShell(OutputWindow):
                 self.close()
                 return False
         else:
-            nosub = "==== No Subprocess ===="
+            nosub = ("==== No Subprocess ====\n\n" +
+                    "WARNING: Running IDLE without a Subprocess is deprecated\n" + 
+                    "and will be removed in a later version. See Help/IDLE Help\n" +
+                    "for details.\n\n")
             sys.displayhook = rpc.displayhook
 
         self.write("Python %s on %s\n%s\n%s" %
@@ -1295,7 +1298,8 @@ USAGE: idle  [-deins] [-t title] [file]*
        idle  [-dns] [-t title] - [arg]*
 
   -h         print this help message and exit
-  -n         run IDLE without a subprocess (see Help/IDLE Help for details)
+  -n         run IDLE without a subprocess (DEPRECATED,
+             see Help/IDLE Help for details)
 
 The following options will override the IDLE 'settings' configuration:
 
@@ -1373,6 +1377,8 @@ def main():
         if o == '-i':
             enable_shell = True
         if o == '-n':
+            print(" Warning: running IDLE without a subprocess is deprecated.",
+                  file=sys.stderr)
             use_subprocess = False
         if o == '-r':
             script = a
index 7bfd2cac2ac90c353fd329b7b002c9eae7dd1284..931457376b611d711145dad8fda98f6617a9277f 100644 (file)
@@ -256,7 +256,7 @@ Command line usage:
 
        Enter idle -h at the command prompt to get a usage message.
 
-Running without a subprocess:
+Running without a subprocess: (DEPRECATED)
 
        If IDLE is started with the -n command line switch it will run in a
        single process and will not create the subprocess which runs the RPC