This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: commands.mkarg function should be public
Type: enhancement Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: donut
Priority: normal Keywords:

Created on 2001-12-04 21:40 by donut, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (2)
msg53364 - (view) Author: Matthew Mueller (donut) Date: 2001-12-04 21:40
There is a strange ommision in the commands module, you
can safely get the ls -ld of a file since it
shell-quotes its argument, but yet you cannot safely
run other commands since the mkarg function isn't
"public" (well, not if you only follow the docs, or do
import *).

In addition, since commands.py seems to be unix only,
it would be better for the mkarg functionality to be
moved to the os module so that on other OSes you could
use it with os.system, etc. (well, I guess maybe it
would belong in the os-specific modules like posix, nt,
etc, since its probably varies)

(Though it should probably be given a better name in
that case, like os.mkshellarg or somesuch.)
msg53365 - (view) Author: Matthew Mueller (donut) Date: 2005-02-10 06:22
Logged In: YES 
user_id=65253

With the addition of the subprocess module in Python 2.4, I
think this is no longer necessary.  Therefore, I am closing it.
History
Date User Action Args
2022-04-10 16:04:43adminsetgithub: 35664
2001-12-04 21:40:18donutcreate