Python source code analysis answers your questions about dynamic languages

Source: Internet
Author: User

Python source code analysis has many tips in the actual operation process. We will introduce you to this tip so that you can better apply it in the Python source code analysis process, the following are some tips for this article.

Python source code analysis-Deep Exploration of Dynamic Language core technology is a high-level Chinese original book that explains the computer language architecture and program implementation. Every friend engaged in software R & D should take some time to read this book.

As a mainstream Dynamic Language, Python is not only easy to learn and has good portability, but also has powerful and rich library support. In addition, Python's powerful scalability allows developers to easily write Python extension modules using C/C ++, it can also embed Python into C/C ++ programs and add dynamic expansion and programming capabilities for its own systems.

To make better use of the Python language, it is very important to deeply understand the operating principles of Python, whether it is using the Python language itself or interacting with C/C ++. This book takes CPython as the research object. At the C code level, it analyzes the Python implementation in depth and detail. The book not only contains an analysis of a large number of Python built-in objects, but also uses a large amount of space for analysis of Python virtual machines and advanced features of Python.

  • Python Regular Expression strings
  • How to format strings in Python during actual operations
  • Steps for Python connection in practical applications
  • Detailed analysis of python Random Number Generation Code
  • Code of the Python Random Number Module

Through this book, readers can thoroughly understand the operating principles of general expressions, control structures, exception mechanisms, class mechanisms, multithreading mechanisms, dynamic module loading mechanisms, memory management mechanisms, and other core technologies in Python, the core technologies of dynamic languages revealed in this book are of great reference value for understanding other dynamic languages, such as Javascript and Ruby.

This book is suitable for Python programmers, dynamic language enthusiasts, and C programmers. Through this book, readers will find the elegant design of outstanding projects in the architecture and the brilliant expression in program implementation. By carefully studying this book, I believe that most readers can greatly improve their horizons and standards.

"Python source code analysis", turned over, basically did not have the brain to buy. There are few books that I can't calm down and buy on china-pub. This is a rare exception. Of course, if you are not a python FANS, this book should be highly immune. There are not many books in China that can be called a "book". This book is not only good, but also good. After reading the first part, the benefits are no small:

1. Internal mechanisms of int, string, list, And dict, so that you can avoid inefficient use modes. Topics such as how to make the most efficient when multiple strings are connected, how to make the list more efficient, and what type of dict is used as the most efficient key?

2. What are the advantages of understanding the design mechanism behind Python? You can adjust the compilation parameters and customize a Python interpreter for yourself. After reading the first part, you can at least adjust the buffer.

3. The last hack XXX for each chapter is good, with analysis and practice.

4. You can know the real name of limodou.

In this book, the first part of the Python source code analysis is about the general implementation of the type, which is not very difficult. Basically, simply reading a detective novel is not a romance novel, and you have to think about it too much) the second part of the virtual machine will be more interesting.

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.