]> granicus.if.org Git - python/commitdiff
Changed signature of call function to avoid confusion: this 'args' is not the same...
authorPeter Astrand <astrand@lysator.liu.se>
Sun, 5 Dec 2004 20:15:36 +0000 (20:15 +0000)
committerPeter Astrand <astrand@lysator.liu.se>
Sun, 5 Dec 2004 20:15:36 +0000 (20:15 +0000)
Doc/lib/libsubprocess.tex
Lib/subprocess.py

index 77bd83e7c296d1efbdbf8aa4c2d339f9863ceb36..308c1dd40f9bfc9770629d81e268facf2d3efada 100644 (file)
@@ -122,7 +122,7 @@ process.  (Windows only)
 
 This module also defines one shortcut function:
 
-\begin{funcdesc}{call}{*args, **kwargs}
+\begin{funcdesc}{call}{*popenargs, **kwargs}
 Run command with arguments.  Wait for command to complete, then
 return the \member{returncode} attribute.
 
index 9e326fbea42c2e940a349b04eab0cc49feefc5d2..40b04fe39ffdf1f3582d53d3b72909bc51bdba89 100644 (file)
@@ -125,7 +125,7 @@ appearance of the main window and priority for the new process.
 
 This module also defines two shortcut functions:
 
-call(*args, **kwargs):
+call(*popenargs, **kwargs):
     Run command with arguments.  Wait for command to complete, then
     return the returncode attribute.
 
@@ -417,7 +417,7 @@ PIPE = -1
 STDOUT = -2
 
 
-def call(*args, **kwargs):
+def call(*popenargs, **kwargs):
     """Run command with arguments.  Wait for command to complete, then
     return the returncode attribute.
 
@@ -425,7 +425,7 @@ def call(*args, **kwargs):
 
     retcode = call(["ls", "-l"])
     """
-    return Popen(*args, **kwargs).wait()
+    return Popen(*popenargs, **kwargs).wait()
 
 
 def list2cmdline(seq):