Bpython: An interface-rich Python parser

Source: Internet
Author: User

Bpython is a lightweight Python parser that includes common IDE features. Features include syntax highlighting, expected parameter lists, automatic indentation, and automatic completion (the following is a usage demo).

Bpython is not a complete IDE, its main purpose is to quickly realize the inspiration in a practical and lightweight way. Bpython can be a substitute for a regular Python parser that can be used to quickly test problem solutions, or test method modules, without the need to create temporary files.
Installation and use

If you have already installed the PIP, install it using the following command line:

$ pip Install Bpython
After installation, in the terminal input Bpython to open the Bpython. As with other interactive Python parsers, you can close Bpython by entering the exit () command or by pressing <control-D>.

Functional Characteristics

1, automatic completion, in the input display code hints.
2, syntax highlighting. This project uses pygments to format and display the color of the code.
3. List of expected parameters. Bpython can display a list of parameters, like other Ides, when calling a function.
4, fallback function. In order to avoid confusion with the usual undo (undo), use the term fallback (rewind). The basic idea is that all of the code is stored in memory, and when the fallback function is used, the last line of code is removed, and then rerun the previous code, equivalent to the previous state of the entire session. Use to rollback.
5, allow the use of other text editors to edit the current line of code or the entire session code. Press the code to open the current session in a text editor. If you make a change in the text editor, the change is also reflected in the current session.
6, support Pastebin. Press to upload the contents of the screen to Pastebin, and return its URL.
7, reload the module that has already been imported. Press the code that clears the contents of the Sys.modules and then re-run the current session. Can be used to test the change of module.

Related Article

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.