- Hands-On Software Engineering with Python
- Brian Allbee
- 500字
- 2021-06-24 18:20:41
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.
- 樂高機(jī)器人:WeDo編程與搭建指南
- 火格局的時(shí)空變異及其在電網(wǎng)防火中的應(yīng)用
- 工業(yè)機(jī)器人技術(shù)及應(yīng)用
- 精通MATLAB圖像處理
- Learning Social Media Analytics with R
- 嵌入式Linux上的C語言編程實(shí)踐
- Visual Basic從初學(xué)到精通
- 基于32位ColdFire構(gòu)建嵌入式系統(tǒng)
- MATLAB/Simulink權(quán)威指南:開發(fā)環(huán)境、程序設(shè)計(jì)、系統(tǒng)仿真與案例實(shí)戰(zhàn)
- 突破,Objective-C開發(fā)速學(xué)手冊(cè)
- PowerMill 2020五軸數(shù)控加工編程應(yīng)用實(shí)例
- 機(jī)床電氣控制與PLC
- 簡(jiǎn)明學(xué)中文版Flash動(dòng)畫制作
- 人工智能:重塑個(gè)人、商業(yè)與社會(huì)
- 歐姆龍CP1H型PLC編程與應(yīng)用