➜

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
标题: Remove commands for PEP 3108
类型: behavior Stage:
Components: Library (Lib) Versions: Python 3.0, Python 2.6
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: brett.cannon 抄送列表: barry, benjamin.peterson, brett.cannon, quentin.gallet-gilles
优先级: release blocker 关键字: patch

Created on 2008-05-16 04:37 by brett.cannon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
remove_commands.patch quentin.gallet-gilles, 2008-05-23 12:29 Remove commands in py3k
commands_2.6.patch quentin.gallet-gilles, 2008-05-23 12:30 Document the removal in trunk
commands_import_fixer.patch quentin.gallet-gilles, 2008-05-26 21:15
Messages (10)
msg66894 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2008-05-16 04:37
The commands module is slated to go. The getstatus() function needs to be 
deprecated, with the rest of the module moving into subprocess (and thus 
adding commands to the 2to3 fix_import fixer).
msg67154 - (view) Author: Quentin Gallet-Gilles (quentin.gallet-gilles) 日期: 2008-05-21 13:59
I'm working on it.
msg67229 - (view) Author: Quentin Gallet-Gilles (quentin.gallet-gilles) 日期: 2008-05-23 12:25
Ok, here are the patches. Since it's a combination of renaming and
removing, I had to improvize a little, particularly in the 2.6
documentation. Hope it's done correctly.

I still have doubts about the following issue, as commented in
test_commands.py :
# The module says:
#   "NB This only works (and is only relevant) for UNIX."
#
# Actually, getoutput should work on any platform with an os.popen, but
# I'll take the comment as given, and skip this suite.

I played it safe as well and didn't change the platform test (both in
trunk/test_py3kwarn and py3k/test_subprocess). Should this restriction
remain ?
msg67230 - (view) Author: Quentin Gallet-Gilles (quentin.gallet-gilles) 日期: 2008-05-23 12:29
Ok, here are the patches. Since it's a combination of renaming and
removing, I had to improvise a little (particularly in the 2.6
documentation). Hope it's done correctly.

I still have doubts about the following issue. As commented in
test_commands.py:
# The module says:
#   "NB This only works (and is only relevant) for UNIX."
#
# Actually, getoutput should work on any platform with an os.popen, but
# I'll take the comment as given, and skip this suite.

I also decided to play it safe and didn't change the test (both in
trunk/test_py3kwarn and py3k/test_subprocess). Should this restriction
remain?
msg67231 - (view) Author: Quentin Gallet-Gilles (quentin.gallet-gilles) 日期: 2008-05-23 12:30
Sorry for the double post
msg67382 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2008-05-26 19:05
r63715 has the 3.0 changes; biggest difference is that I also ripped out 
the mk2arg() and friends since they are not used by anyone.

I still need to add the fixer and add the proper warnings in 2.6 along 
with the doc change.
msg67384 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) 日期: 2008-05-26 19:44
2.6 things done in r63721.
msg67389 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2008-05-26 20:06
Thanks for adding the warnings, Benjamin. The docs for 2.6 still need to 
be updated about the rename/merge. I have replied to your commit with some 
comments.

And I think the 2to3 fixer still needs to be done. Because of all this I 
am re-opening this issue.
msg67395 - (view) Author: Quentin Gallet-Gilles (quentin.gallet-gilles) 日期: 2008-05-26 21:15
I've updated the 2to3 import fixer (mkarg/mk2arg not handled anymore).
msg67397 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) 日期: 2008-05-26 21:31
I've committed Quentin's 2to3 addition as r63729.
历史
日期 用户 动作 参数
2022-04-11 14:56:34admin修改抄送: + barry
github: 47121
2008-05-26 21:31:36benjamin.peterson修改状态: open -> closed
resolution: fixed
消息: + msg67397
2008-05-26 21:15:34quentin.gallet-gilles修改文件: + commands_import_fixer.patch
消息: + msg67395
2008-05-26 21:14:48quentin.gallet-gilles修改文件: - commands_import_fixer.patch
2008-05-26 20:06:59brett.cannon修改状态: closed -> open
resolution: fixed -> (no value)
消息: + msg67389
2008-05-26 19:51:33benjamin.peterson解链issue2775 dependencies
2008-05-26 19:44:13benjamin.peterson修改状态: open -> closed
resolution: fixed
消息: + msg67384
抄送: + benjamin.peterson
2008-05-26 19:05:28brett.cannon修改消息: + msg67382
2008-05-26 01:30:57brett.cannon修改assignee: brett.cannon
2008-05-23 12:31:27quentin.gallet-gilles修改文件: + commands_import_fixer.patch
2008-05-23 12:31:00quentin.gallet-gilles修改文件: + commands_2.6.patch
消息: + msg67231
2008-05-23 12:29:51quentin.gallet-gilles修改文件: - remove_commands.patch
2008-05-23 12:29:31quentin.gallet-gilles修改文件: + remove_commands.patch
消息: + msg67230
2008-05-23 12:26:07quentin.gallet-gilles修改文件: + remove_commands.patch
keywords: + patch
消息: + msg67229
2008-05-21 13:59:13quentin.gallet-gilles修改抄送: + quentin.gallet-gilles
消息: + msg67154
2008-05-16 04:37:44brett.cannon链接issue2775 dependencies
2008-05-16 04:37:26brett.cannon创建