Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commands.mkarg function should be public #35664

Closed
donut mannequin opened this issue Dec 4, 2001 · 2 comments
Closed

commands.mkarg function should be public #35664

donut mannequin opened this issue Dec 4, 2001 · 2 comments
Labels
type-feature A feature request or enhancement

Comments

@donut
Copy link
Mannequin

donut mannequin commented Dec 4, 2001

BPO 489106

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2005-02-10.06:22:39.000>
created_at = <Date 2001-12-04.21:40:18.000>
labels = ['type-feature']
title = 'commands.mkarg function should be public'
updated_at = <Date 2005-02-10.06:22:39.000>
user = 'https://bugs.python.org/donut'

bugs.python.org fields:

activity = <Date 2005-02-10.06:22:39.000>
actor = 'donut'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2001-12-04.21:40:18.000>
creator = 'donut'
dependencies = []
files = []
hgrepos = []
issue_num = 489106
keywords = []
message_count = 2.0
messages = ['53364', '53365']
nosy_count = 1.0
nosy_names = ['donut']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue489106'
versions = []

@donut
Copy link
Mannequin Author

donut mannequin commented Dec 4, 2001

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.)

@donut donut mannequin closed this as completed Dec 4, 2001
@donut donut mannequin added the type-feature A feature request or enhancement label Dec 4, 2001
@donut donut mannequin closed this as completed Dec 4, 2001
@donut donut mannequin added the type-feature A feature request or enhancement label Dec 4, 2001
@donut
Copy link
Mannequin Author

donut mannequin commented Feb 10, 2005

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

0 participants