IDLE历史,Python IDE和带有Vim的Interactive Python [英] IDLE history, Python IDE, and Interactive Python with Vim

查看:132
本文介绍了IDLE历史,Python IDE和带有Vim的Interactive Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这与Python和Vim有关(这就是为什么我已经发布了

两个新闻组)。


Python相关:

----------------------

由于缺乏一段时间我一直很沮丧IDLE中的历史

命令(实际上一般是IDLE)。通常我会在命令行开发新的

代码,在我去的时候测试每一行。目前我必须

复制和粘贴,删除输出和>>>在每一行。

是否有可能做出某种破解(转储

命令历史记录)?


空闲一般不是那么棒的IMO,所以我也想知道是否有更好的替代品吗?人们主要使用什么?我已经尝试过了一些名为pyCrust的东西,但是这也没有历史和其他一些我想要的东西。更一般地说,虽然敏捷性和b的简单性使得像IDE这样的编程工具不那么必要,但似乎Python在这个部门中缺乏。用于Eclipse的

PyDev插件似乎是朝着这个方向迈出的良好一步,尽管

我还没有尝试过。有没有人有这方面的经验,或者

也许可以指向我其他工具。


Vim相关:

- --------------------

理想情况下,将一个命令映射到一个可以敲击的键击是很好的。 $ b将最后执行的命令附加到文件。更好的是一个系统

,它可以更加无缝地集成文件编辑和交互式命令行工具

。调试器+文件编辑器的内容

+命令行实用程序,其中文件编辑器= vim。我知道vim有一个用于从命令提示符运行python命令的

实用程序,但是我已经

很难让它在windows中运行并且没有探索了它。

有没有人看过/尝试过这些系统的系统,或许可以在python调试器(pdb)中加入
?我可以看到一些会运行你的文件的东西你在bim中编辑vim到光标或在你正在编辑的行

上用set_trace标记。

如有任何信息,谢谢。


-

Ashot Petrosian

德克萨斯大学奥斯汀分校,计算机科学

解决方案

这当然是一个值得讨论的话题。有几个用于Python的IDE

(我非常喜欢Komodo)有很多花哨的

调试功能和高级操作,但是我还没有

遇到(其他地方)随着能够按下F5并且有一个交互式口译员加载我的代码并准备

进行测试所带来的便利。 br />

那就是说,这是我使用IDLE的唯一原因。如果没有它,我可能会忘记IDLE存在,如果不是令人讨厌的

上下文菜单条目。 ;)


-

Daniel Bickett

dbickett at gmail.com
http://heureusement.org/


Daniel Bickett写道:< blockquote class =post_quotes>这当然是一个值得讨论的话题。有几个用于Python的IDE
(我非常喜欢Komodo)有很多花哨的调试功能和高级操作,但是我还没有遇到(其他地方)方便的能够按下F5并有一个交互式翻译加载我的代码并准备好进行测试。




*叹气*,我我也是一个vi有点家伙,我一直在为WingIDE

团伙唠叨给Wing一个vi模式...... :)他们一直说它来了,

但是它已经有一段时间......而且对他们来说,我不认为

他们门口有一大群vi野蛮人!

可能是一个非常小的部落,而且不是很吵。 ;)


史蒂夫


虽然WingIDE看起来不错,但似乎互动外壳是

从截图中内置。你可以运行一个程序到某一点

断点并使用shell吗?


2005年2月2日星期三23:40:40 -0500, Stephen Waterbury< go *** @ comcast.net>

写道:

Daniel Bickett写道:

这肯定是一个有价值的话题。有几个用于Python的IDE
(我非常喜欢Komodo)有很多花哨的调试功能和高级操作,但是我还没有遇到(其他地方)方便的能够按下F5并让一个交互式翻译加载我的代码并准备好进行测试。



*叹气*,我也是一个vi有点儿,我一直在对WingIDE
帮派给予一个vi模式...... :)他们一直说它即将到来,
但它已经有一段时间了。 ..并且对他们公平,我不认为
在他们的门口有一大群vi野蛮人!
可能是一个非常小的部落,而且不是很吵。 ;)

史蒂夫




-

============= =================

Ashot Petrosian

德克萨斯大学奥斯汀分校,计算机科学

(表达的观点完全属于我自己)

==============================


This is sort of both Python and Vim related (which is why I''ve posted to
both newsgroups).

Python related:
----------------------
I have been frustrated for quite some time with a lack of a history
command in IDLE (in fact with IDLE in general). Often I''ll develop new
code at the command line, testing each line as I go. Currently I have to
copy and paste, removing outputs and the ">>>" at each line.
Is it perhaps possible to make some kind of hack to do this (dump a
command history)?

Idle in general isn''t that great IMO, so I was wondering also if there are
better alternatives out there? What do people use mostly? I''ve tried
something called pyCrust, but this too didn''t have history and some other
things I was looking for. On a more general note, although the agility
and simplicity of Python make programming tools like an IDE less
necessary, it still seems that Python is lacking in this departement. The
PyDev plug-in for Eclipse seems like good step in this direction, although
I haven''t tried it yet. Does anyone have any experience with this, or
perhaps can point me to other tools.

Vim related:
----------------------
Ideally, it would be nice to have a command mapped to a keystroke that can
append the last executed command to a file. Even better would be a system
that would integrate the file editing and interactive command line tool
more seamlessly. Something along the lines of a debugger + file editor
+ command line utility, where file editor = vim. I know that vim has a
utility for running python commands from its command prompt, but I have
had a hard time getting this to work in windows and haven''t explored it.
Has anyone seen/tried a system along these lines, perhaps incorporating
the python debugger (pdb)? I can see something that will run the file you
are editing in vim up to the cursor or a mark with a set_trace at the line
you are editing.
Any info is appreciated, thanks.

--
Ashot Petrosian
University of Texas at Austin, Computer Sciences

解决方案

This is certainly a worthy topic. There are several IDEs for Python
(one I like very much being Komodo) that have plenty of fancy
debugging features and advanced operations, however I have yet to
encounter (elsewhere) the convenience that comes with being able to
press F5 and have an interactive interpreter load my code and be ready
for testing.

That said, that is my only reason for my ever using IDLE. Without it I
would probably forget that IDLE exists, were it not for the obnoxious
context menu entry. ;)

--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/


Daniel Bickett wrote:

This is certainly a worthy topic. There are several IDEs for Python
(one I like very much being Komodo) that have plenty of fancy
debugging features and advanced operations, however I have yet to
encounter (elsewhere) the convenience that comes with being able to
press F5 and have an interactive interpreter load my code and be ready
for testing.



*Sigh*, I too am a vi kinda guy, and I keep badgering the WingIDE
gang to give Wing a vi mode ... :) They keep saying "it''s coming",
but it''s been a while ... and in fairness to them, I don''t think
there is exactly a huge horde of vi barbarians at their gate!
Probably a pretty tiny horde, and not very noisy. ;)

Steve


WingIDE looks nice though, and it seems that the interactive shell is
built in from the screenshots. Can you run a program to a certain point
break point and use the shell?

On Wed, 02 Feb 2005 23:40:40 -0500, Stephen Waterbury <go***@comcast.net>
wrote:

Daniel Bickett wrote:

This is certainly a worthy topic. There are several IDEs for Python
(one I like very much being Komodo) that have plenty of fancy
debugging features and advanced operations, however I have yet to
encounter (elsewhere) the convenience that comes with being able to
press F5 and have an interactive interpreter load my code and be ready
for testing.



*Sigh*, I too am a vi kinda guy, and I keep badgering the WingIDE
gang to give Wing a vi mode ... :) They keep saying "it''s coming",
but it''s been a while ... and in fairness to them, I don''t think
there is exactly a huge horde of vi barbarians at their gate!
Probably a pretty tiny horde, and not very noisy. ;)

Steve



--
==============================
Ashot Petrosian
University of Texas at Austin, Computer Sciences
(views expressed are solely my own)
==============================


这篇关于IDLE历史,Python IDE和带有Vim的Interactive Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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