是的,这是一个python问题,并且是一个严肃的问题(转向Win XP) [英] Yes, this is a python question,and a serious one at that (moving to Win XP)

查看:57
本文介绍了是的,这是一个python问题,并且是一个严肃的问题(转向Win XP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于不幸的原因,我正在考虑切换回Win XP

(来自OS X)作为我的主要部分。系统。 Windows有很多烦恼,

我只能将其与高峰时段在湾区的驾驶进行比较(OS X

就像在高峰时间在波特兰开车一样 - 不是虽然糟糕,但在那里得到了
,但实际上只有几件事真的,

绝对阻止我进行切换。排名第一的是缺乏一个像样的命令行和命令行环境,而且我很想知道(希望)是否有人写过Python shell -

看起来像常规shell的东西,让用户输入

命令,也许有bash等一些不错的功能,如tab

完成等,然后在输入命令时执行底层python脚本

。我不是在考虑IDLE,而是一些

,它真的更瞄准的是系统终端,而不是Python-

特定的终端。


是的,我知道Cygwin在那里,但最后我看了,他们仍然在
通过Win命令行窗口,这就强加了很多

限制。


更一般地说,有人编写任何python程序来管理

各种Win设置,否则必须深入研究

迷宫般的小对话框,都一样吗?或者帮忙解决其他的b $ b烦恼?我知道有很多通用实用程序,但是如果它们是用Python编写的,我也可以将它们用作我自己的b / b
需求的起始基础。 br />

最后,这样做的一个重要诱因是我可以避免很多安装麻烦,因为几乎所有东西都至少有$ b $适合Win的安装包。 (我希望这会发生OS X的
,但它从来没有)。任何人都可以想到重要的python-

相关软件包(发布级别,而不是尖端的alphas)

这可能不是这种情况吗?

非常感谢,

Ken

For unfortunate reasons, I''m considering switching back to Win XP
(from OS X) as my "main" system. Windows has so many annoyances that
I can only compare it to driving in the Bay Area at rush hour (OS X
is like driving in Portland at rush hour--not as bad, but getting
there), but there are really only a couple of things that are really,
absolutely preventing me from making the switch. Number one is the
lack of a decent command line and command-line environment, and I''m
wondering (hoping) if perhaps someone has written a "Python shell"--
something that will look like a regular shell, let users type in
commands, maybe have some of the nice features of bash etc. like tab
completion, etc, and will then execute an underlying python script
when the command is entered. I''m not thinking of IDLE, but something
that is really aimed more at being a system terminal, not a Python-
specific terminal.

Yes, I know that Cygwin is out there, but last I looked, they still
went through the Win command-line window, which imposes a lot of
restrictions.

More generally, has anyone written any python programs to administer
various Win settings for which one must otherwise delve deep into
mazes of twisty little dialogs, all alike? Or to help out with other
annoyances? I know there are a lot of general utilities, but if
they''re in Python, I can also use them as a starting base for my own
needs.

Finally, a significant incentive in doing this is that I could avoid
a lot of installation hassle, since virtually everything has at least
a decent installation package for Win. (I''d hoped this would happen
for OS X, but it never has). Can anyone think of important python-
related packages (release level, not cutting edge alphas) for which
this might not be the case?

Many thanks,
Ken

推荐答案

我能指出的不是Python,而是嵌入它在Python中

是一个执行一行Python代码触发其执行b
的问题。

我想你会对它的功能着迷和易用性

它是否适合您的需求:
http://www.autoitscript.com/autoit3/index.php

有了它,你会开始看到,强迫服从Windows方式

的服务不仅有坏的方面。


是否有其他操作系统类似的东西(尤其是Linux)?
< br $>
Claudio


" Kenneth McDonald" <柯**************** @ sbcglobal.net> schrieb im Newsbeitrag

新闻:ma ************************************ * @ pytho n.org ...
What I can point you to is not Python, but embedding it in Python
is a question of executing one line of Python code triggering its
execution.
I think you will be fascinated by its features and ease of use and
how well it is suited to fit into your needs:
http://www.autoitscript.com/autoit3/index.php
With it you will start to see, that forcing to obey to Windows way
of doing things has not only bad sides.

Is there something similar for another OSs-es (especially Linux)?

Claudio

"Kenneth McDonald" <ke****************@sbcglobal.net> schrieb im Newsbeitrag
news:ma*************************************@pytho n.org...
出于不幸的原因,我正在考虑切换回Win XP
(来自OS X)作为我的主要部分。系统。 Windows有很多烦恼,我只能把它与高峰时段在湾区的驾驶相比较(OS X
就像在高峰时间在波特兰开车一样 - 不是很糟糕,但是得到了那里),但实际上只有几件事真的,
绝对阻止我进行转换。第一是缺乏一个像样的命令行和命令行环境,我想知道(希望)是否有人写过Python shell -
看起来像常规shell的东西,让用户输入
命令,也许有bash等一些很好的功能,如tab
完成等,然后执行一个底层的python脚本
输入命令时。我不是在想IDLE,而是想要更多地将其作为系统终端,而不是Python-
特定的终端。

是的,我知道Cygwin在那里,但最后我看了,他们仍然通过Win命令行窗口,这有很多
限制。

更一般地说,有人写过任何管理的python程序
各种Win设置,否则必须深入研究
迷你小对话的迷宫,都一样?或者帮忙解决其他问题?我知道有很多通用工具,但如果他们是Python,我也可以将它们作为我自己需要的起点。

最后这样做的一个重要动机是我可以避免很多安装麻烦,因为几乎所有东西都至少有一个适合Win的安装包。 (我希望OS X会发生这种情况,但它从未有过)。谁能想到重要的python-
相关软件包(发布级别,而不是尖端的alphas)
这可能不是这样的?

非常感谢,
Ken
For unfortunate reasons, I''m considering switching back to Win XP
(from OS X) as my "main" system. Windows has so many annoyances that
I can only compare it to driving in the Bay Area at rush hour (OS X
is like driving in Portland at rush hour--not as bad, but getting
there), but there are really only a couple of things that are really,
absolutely preventing me from making the switch. Number one is the
lack of a decent command line and command-line environment, and I''m
wondering (hoping) if perhaps someone has written a "Python shell"--
something that will look like a regular shell, let users type in
commands, maybe have some of the nice features of bash etc. like tab
completion, etc, and will then execute an underlying python script
when the command is entered. I''m not thinking of IDLE, but something
that is really aimed more at being a system terminal, not a Python-
specific terminal.

Yes, I know that Cygwin is out there, but last I looked, they still
went through the Win command-line window, which imposes a lot of
restrictions.

More generally, has anyone written any python programs to administer
various Win settings for which one must otherwise delve deep into
mazes of twisty little dialogs, all alike? Or to help out with other
annoyances? I know there are a lot of general utilities, but if
they''re in Python, I can also use them as a starting base for my own
needs.

Finally, a significant incentive in doing this is that I could avoid
a lot of installation hassle, since virtually everything has at least
a decent installation package for Win. (I''d hoped this would happen
for OS X, but it never has). Can anyone think of important python-
related packages (release level, not cutting edge alphas) for which
this might not be the case?

Many thanks,
Ken



Kenneth McDonaldaécrit:
Kenneth McDonald a écrit :
出于不幸的原因,我正在考虑切换回Win XP(来自
OS X)作为我的主要系统。 Windows有很多烦恼,我只能将其与高峰时段在湾区的驾驶进行比较(OS X就像在高峰时间在波特兰开车一样 - 不是很糟糕,而是到达那里),但实际上只有几件事真的,绝对不会阻止我进行转换。第一是缺乏良好的命令行和命令行环境,我想知道(希望)是否有人编写了Python shell - 某事
它看起来像一个普通的shell,让用户输入命令,也许
具有bash等一些很好的功能,比如tab完成等等,然后将执行一个底层的python脚本
输入命令。我不是在考虑IDLE,而是一些真正的目标,更多的是作为一个系统终端,而不是一个特定于Python的终端。

是的,我知道Cygwin在那里,但最后我看了,他们仍然通过Win命令行窗口,这有很多限制。

更一般地,有人写过任何python程序管理
各种Win设置,否则必须深入研究迷宫的小对话框,这些都是相似的?或者帮忙解决其他问题?我知道有很多通用工具,但如果他们用Python,我也可以用它作为我自己需要的起点。

最后,一个重要的激励这样做是因为我可以避免大量的安装麻烦,因为几乎所有东西都至少有一个适合Win的安装包。 (我希望这会发生在OS X上,但它永远不会发生)。任何人都可以想到重要的python相关的包(发布级别,而不是尖端的alpha),这可能不是这样吗?

非常感谢,
Ken
For unfortunate reasons, I''m considering switching back to Win XP (from
OS X) as my "main" system. Windows has so many annoyances that I can
only compare it to driving in the Bay Area at rush hour (OS X is like
driving in Portland at rush hour--not as bad, but getting there), but
there are really only a couple of things that are really, absolutely
preventing me from making the switch. Number one is the lack of a
decent command line and command-line environment, and I''m wondering
(hoping) if perhaps someone has written a "Python shell"-- something
that will look like a regular shell, let users type in commands, maybe
have some of the nice features of bash etc. like tab completion, etc,
and will then execute an underlying python script when the command is
entered. I''m not thinking of IDLE, but something that is really aimed
more at being a system terminal, not a Python- specific terminal.

Yes, I know that Cygwin is out there, but last I looked, they still
went through the Win command-line window, which imposes a lot of
restrictions.

More generally, has anyone written any python programs to administer
various Win settings for which one must otherwise delve deep into mazes
of twisty little dialogs, all alike? Or to help out with other
annoyances? I know there are a lot of general utilities, but if they''re
in Python, I can also use them as a starting base for my own needs.

Finally, a significant incentive in doing this is that I could avoid a
lot of installation hassle, since virtually everything has at least a
decent installation package for Win. (I''d hoped this would happen for
OS X, but it never has). Can anyone think of important python- related
packages (release level, not cutting edge alphas) for which this might
not be the case?

Many thanks,
Ken




上次我检查过,你可以用cygwin安装一个原生win32gui版本的rxvt

。这会给你一个比你在XP中获得的更好的终端窗口。



Last time I checked, you could install a native win32gui version of rxvt
with cygwin. This would give you a better terminal window than that
crappy thing you get in XP.


> Kenneth McDonald a ?? crit:
> Kenneth McDonald a ??crit :
出于不幸的原因,我正在考虑切换回Win XP(来自OS X)作为我的主"系统。 Windows有很多烦恼,我只能将其与高峰时段在湾区的驾驶进行比较(OS X就像在高峰时间在波特兰开车一样 - 不是很糟糕,而是到达那里),但实际上只有几件事真的,绝对不会阻止我进行转换。第一是缺乏良好的命令行和命令行环境,我想知道(希望)是否有人编写了Python shell - 某事
它看起来像一个普通的shell,让用户输入命令,也许
具有bash等一些很好的功能,比如tab完成等等,然后将执行一个底层的python脚本
输入命令。我不是在考虑IDLE,而是一些真正的目标,更多的是作为一个系统终端,而不是一个特定于Python的终端。

是的,我知道Cygwin在那里,但最后我看了,他们仍然通过Win命令行窗口,这有很多限制。
For unfortunate reasons, I''m considering switching back to Win XP (from
OS X) as my "main" system. Windows has so many annoyances that I can
only compare it to driving in the Bay Area at rush hour (OS X is like
driving in Portland at rush hour--not as bad, but getting there), but
there are really only a couple of things that are really, absolutely
preventing me from making the switch. Number one is the lack of a
decent command line and command-line environment, and I''m wondering
(hoping) if perhaps someone has written a "Python shell"-- something
that will look like a regular shell, let users type in commands, maybe
have some of the nice features of bash etc. like tab completion, etc,
and will then execute an underlying python script when the command is
entered. I''m not thinking of IDLE, but something that is really aimed
more at being a system terminal, not a Python- specific terminal.

Yes, I know that Cygwin is out there, but last I looked, they still
went through the Win command-line window, which imposes a lot of
restrictions.




您可以查看ipython: http://ipython.scipy.org 。它的''pysh''配置文件确实是你所描述的大部分内容,并且拥有win32用户专用的追随者

正是因为你的使用案例。它被安装到

win32下的开始菜单中,作为原始ipython的单独条目。


如果你有用户列表,请停止进一步的问题。


干杯,


f



You can look at ipython: http://ipython.scipy.org. Its ''pysh'' profile does
much of what you describe, and has a dedicated following of win32 users
precisely for your usage case. It gets installed to your start menu under
win32 as a separate entry from the ''raw'' ipython.

Stop by the users list if you have further questions.

Cheers,

f


这篇关于是的,这是一个python问题,并且是一个严肃的问题(转向Win XP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆