Fully parse the concept of the Python Editor

Source: Internet
Author: User

For users and scholars who first came into contact with the Python Editor, it is very important to understand the concept of the Python editor. let's first talk about what is the Python editor, the so-called Python Editor: it is a widely used computer programming language.

An interesting decision made Komodo build based on the Mozilla framework. It seems that Web browsers do not need so much code useful to IDE, but ActiveState makes full use of this (Mozilla tries to become a "Platform" instead of just a browser, this is true ).

Komodo is priced at $295 a year, and the free beta version is quite disappointing. Moreover, ActiveState seems to be in violation of the spirit of Mozilla's Public License (which may be different from the original article) from the Komodo code ).

I want ActiveState to decide to change the license regulations to comply with open source code practices (Technical Support and automatic updates are charged ). The Beta 1.3 I tested supports Python, Perl, TCL, Javascript, and XML development. It also supports syntax labels highlighted in dozens of other languages (but not in more languages ). Python support is currently the strongest. A beta version that supports Win32 and Linux is available and will support other platforms one after another.

In my opinion, Komodo is more like a superset In the Python editor. As far as I know, it does not share most of the same Code libraries, but it feels similar. Thanks to Mozilla's features, Komodo is the best interface in the software I evaluated, because it is also the slowest to run for the same reason.

I do not recommend using Komodo on older machines. I tested it on the 366 Mhz Win95r2 system and found it can run but it is not fast. Although the debugger and Editor interface is similar to PythonWin, You can edit many other languages.

And debug the Perl and Python editors. You can run Komodo in Linux. Komodo's "code check" function is extremely intelligent and unique. It operates like the spelling checker of many recent word processing software. When you enter the data, the following code indicates a curve. You can continue to enter the data.

And it will always mark until you return and correct the problem, it is also a good prompt. Komodo didn't try to build any Form Designer or graphic programming in place. In addition, it is good as a beta version. Now let's analyze how to purchase Python IDE.

People generally think that commercial products provide additional functions and are worth the money to purchase. This is true in some ways. The price for WingIDE is USD 100. BlackAdder is priced at $80 (for personal systems only) and $400 (for distribution of BlackAdder running components to others ).

Unfortunately, I found that these two products are not stable enough to be recommended for actual development. If the IDE cannot be used for actual development, there are not so many common functions. We hope these two products can be improved through new versions or patch fixes. BlackAdder is a QT-based development environment in linux and windows. See the screen.

In the product mentioned in this column, this product is the only one with a Form Designer, and the Form Designer itself is doing well (for PyQT programming ). Like Delphi, Visual Basic, and similar tools, you can place gadgets on the panel and adjust attributes and behaviors in the "attributes" form.

The icon of the element is a little dull, especially when it turns gray, but it is not very important to be beautiful. The source code editor provides code merging and syntax label highlighting, but there is no automatic Code Completion prompt. BlackAdder has a very good debugger, which is similar to other free tools except for the lack of monitoring functions.

Unfortunately, I encountered some serious usage problems in testing V1.0 beta 2. I tested the Mandrake, Slackware, and Windows packages (but did not test Debian and Redhat, although I think the Linux variants are just different software packages ).

Idle is a basic IDE written in pure Python using Tkinter. In general, Idle is a standard Python release, or even written by Guido van rosum (at least most of the original version ). You can run Idle in any environment where Python and TK can be run.

Open Idle and an enhanced interactive command line interpreter window appears (with better cut-paste and back-to-line functions than the basic interactive command prompt ). In addition, there is also a Python Editor (without code merging, but with syntax label highlighting and Automatic Code Completion), Class browser and debugger. The menu is separated by TK; that is, clicking the dotted line of any drop-down menu at the top will promote the menu to its own permanent window.

Especially for the "Edit" menu, it is very practical to "rely on" it in the corner of the desktop. The Idle debugger provides breakpoint, step-by-step, and variable monitoring functions, but it does not have its memory address or variable content storage, or it provides excellent synchronization and other analysis functions. Of course, my debugging style includes some scattered print commands, but your method may be different from mine.

Various problems are everywhere (probably partly because the correct operating system version and revision version must be relied on ). For example, the default font is too small. It cannot be read in Linux or Windows. Changing the font of the editor requires you to monotonically modify the font of 20 syntax markup elements one by one (not many other editors and URLs in the IDE are added to favorites.

  1. Introduction to Python system files
  2. How to correctly use Python Functions
  3. Detailed introduction and analysis of Python build tools
  4. Advantages of Python in PythonAndroid
  5. How to Use the Python module to parse the configuration file?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.