官术网_书友最值得收藏!

IDLE

IDLE is a simple IDE, written in Python and using the Tkinter GUI, which means that it should run on pretty much anything that Python can run on. It is often, but not always, part of a default Python installation but even when it's not included by default, it's easily installed and doesn't require much of anything in the way of external dependencies or other languages runtime environments.

  • Large-project support: Poor
  • Refactoring support: Poor
  • Language exploration: Good
  • Code execution: Good
  • Bells and whistles: Fair

Out of the box, IDLE doesn't provide any project management tools, though there may be plugins that provide some of this capability. Even so, unless there are also plugins available that allow for more than one file to be open at a time without requiring each to be in a separate window, working with code across multiple files will eventually be tedious, at best, and perhaps impractical to the point of being effectively impossible.

Although IDLE's search-and-replace functionality includes one nice feature – regular expression-based searches – that's about it as far as functionality that is meaningful or useful for refactoring purposes. Any significant refactoring effort, or even widespread but smaller scoped changes, will require a relatively high degree of manual effort.

Where IDLE really shines is in its ability to dig into the packages and modules available on the system. It provides both a class browser that allows direct exploration of any importable namespace in the Python path, and a path browser that allows exploration of all available namespaces. The only downsides to these are a lack of search capability and that each class browser has to reside in a separate window. Were these not concerns, a Great rating would not seem out of line.

IDLE allows any open file to be executed with a single keystroke, with the results/output of that run displayed in a single, common Python shell window. There is no facility for passing arguments to those executions, but that's probably only a concern if a project involves some sort of command-line program that accepts arguments. IDLE also provides a syntax check that identifies the first syntax problem detected in the code, which could be of some use.

The only reliably functional bells and whistles item that IDLE offers is coloration of code. There are extensions that are supposed to provide things such as auto-completion and some code authoring assistance (automatic generation of closing parenthesis, for example), but none of them appear to be functional.

The following is a screenshot of IDLE showing the console, a code editing window, class and path browser windows, and a search and replace window:

IDLE is probably a reasonable choice for small code efforts – anything that doesn't require having more files open than the user's comfortable with having displayed in their individual windows. It's lightweight, with a reasonably stable (if occasionally quirky) GUI. It's not something that feels like it would work well for projects that involve more than one distributable package, though.

主站蜘蛛池模板: 通河县| 黄山市| 蒙山县| 哈尔滨市| 金川县| 博乐市| 呼和浩特市| 古蔺县| 阳西县| 禹城市| 龙泉市| 琼结县| 中牟县| 缙云县| 河东区| 喀喇沁旗| 城步| 阿勒泰市| 防城港市| 姜堰市| 托克托县| 陇南市| 宜都市| 颍上县| 宝坻区| 商城县| 额尔古纳市| 汪清县| 嵩明县| 黄冈市| 澄江县| 黑龙江省| 宁阳县| 南宫市| 嘉兴市| 喜德县| 彩票| 建德市| 余姚市| 红桥区| 屯留县|