Important factors affecting the development of Python

Source: Internet
Author: User

The interpreter in the Python development language is written in Java. Therefore, you can deploy the Python development language on any platform that supports Java, or even run the Python script directly in a WEB browser, the following is a study.

The STARTUP configuration window is displayed. In addition to the Base Directory, keep the default value for all other items. The Base directory must be the directory of the feedParserTest project to find the RSS file testData/developerworks. rss in the current directory ).

Modify the settings of the base directory and click "Run ". The output information is displayed on the Console. You may want all unit tests we write to be automatically executed as part of the build. Add the build snippets shown in listing 5 to the build script. The first line is the target declaration, which is the same as other scripts. Lines 2nd to 6th call the py-test task. This part of the code searches for all files ending with "Test. py" in the "src" directory and runs all tests.

Set PYTHONPATH to "src", and the current working directory of the test execution is the current directory '.'). The method to run the target is to run the build script first, and then select to execute the "tests" target. This target runs all Test cases ending with "Test. py". In this example, only FeadparserTest. py is used.

The combination of Eclipse and PyDev plug-ins and the use of Apache Ant and Python Ant tasks can provide a fully integrated development environment and build/deploy tool for the Python development language. These tools are still in the development process, so you should always check whether there are any updates. If you feel that you want to see something special, you can roll up your sleeves and make yourself more self-reliant.

Eclipse is an Integrated Java Development Environment developed by IBM and its source code is open. It is the foundation of the IBM commercial software WebSphere Application Development Environment and other tools. The Eclipse development community is very active.

They not only develop Eclipse, but also develop a large number of plug-ins for Eclipse. For websites of Eclispe and Eclipse plug-ins, see the links in the references section. Although Eclipse is traditionally a Java development tool, the existence of some plug-ins makes it possible to develop programs in other languages in Eclipse, such as C/C ++, Python, and Perl.

In Eclipse, the source code is organized into the project. Projects can be loaded, detached, and imported. Eclipse user interface structure is divided into View) and Editor ). Examples of views and editors include: Source Code outline view, Java source code editor, Python source code editor, and file system navigation view. The most important implicit concept in the Eclipse user interface is the perspective ).

A view is a set of views that are usually used together when a type of activity is executed. Standard perspectives in Eclipse include: Debug, Java Browsing, Java, Java Type Hierarchy, Plug-in Development, CVS Repository refreshing ing, Resource, and Install/Update. Currently, there is no separate Python development language. During Python development, I usually use the Resource and Debug perspectives.

First, download Eclipse from the Eclipse Web site, see the link in the references section), and install Eclipse based on your platform according to the following installation guide: the update mechanism of Eclipse makes it easier to install the PyDev plug-in. Select Help> Software Updates> Update Manager from Eclipse to start the Install/Update perspective.

In the Feature Updates view in the lower-left corner, add the PyDev plug-in Update Site as the new Site Bookmark to the "Sites to Visit" folder. Eclipse's PyDev Update site URL is http://pydev.sf.net/updates /. The Feature Updates editor should now display the "PyDev" Feature.

In the Feature Updates Editor, expand PyDev> Other and select the display PyDev Feature at least 0.4.1 ). Then select "Install Now" to Install the feature. Eclipse will download the PyDev plug-in and install it in Eclipse.

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.