Python Learning (17) extending Python

Source: Internet
Author: User

C, C + +, Java is a few orders of magnitude faster than python.

17.1 Consider which is more important

Development speed or speed is more important.

17.2 very simple approach: Jython and IronPython

Jython has direct access to the Java Standard library.

The C # Standard library can be accessed directly in IronPython.

17.3 writing a C language extension

Extended Python is typically the extended CPython, which is the standard Python version implemented in the C language.

17.3.1 SWIG

Swig is an abbreviation for simple packaging and interface generators and is a tool that can be used in several languages. On the one hand, extension code can be written in C or C + +, and it will automatically wrap the code for use in high-level languages.

17.3.2-byte study

  

Python Learning (17) extending Python

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.