CPython Internals: Your Guide to the Python 3 Interpreter (Paperback)

Shaw, Anthony

  • 出版商: Real Python (Realpython.Com)
  • 出版日期: 2021-05-05
  • 售價: $1,600
  • 貴賓價: 9.5$1,520
  • 語言: 英文
  • 頁數: 396
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1775093344
  • ISBN-13: 9781775093343
  • 相關分類: Python程式語言
  • 相關翻譯: CPython設計與實現 (簡中版)
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Get your guided tour through the Python 3.9 interpreter: Unlock the inner workings of the Python language, compile the Python interpreter from source code, and participate in the development of CPython.

Are there certain parts of Python that just seem like magic?

This book explains the concepts, ideas, and technicalities of the Python interpreter in an approachable and hands-on fashion.

Once you see how Python works at the interpreter level, you can optimize your applications and fully leverage the power of Python.

By the End of the Book You'll Be Able To:

  • Read and navigate the CPython 3.9 interpreter source code. You'll deeply comprehend and appreciate the inner workings of concepts like lists, dictionaries, and generators.

  • Make changes to the Python syntax and compile your own version of CPython, from scratch. You'll customize the Python core data types with new functionality and run CPython's automated test suite.

  • Master Python's memory management capabilities and scale your Python code with parallelism and concurrency.

  • Debug C and Python code like a true professional. Profile and benchmark the performance of your Python code and the runtime.

  • Participate in the development of CPython and know how to contribute to future versions of the Python interpreter and standard library. How great would it feel to give back to the community as a "Python Core Developer?"

With this book you'll cover the critical concepts behind the internals of CPython and how they work with visual explanations as you go along.

Each page in the book has been carefully laid out with beautiful typography, syntax highlighting for code examples.

About the Author:

Anthony Shaw is a CPython contributor and a PyCon speaker. He has a B.Sc. in Computer Science and over 8 years of experience working with Python. Anthony is also a Fellow of the Python Software Foundation and member of the Open-Source Apache Foundation.

What Python Developers Say About The Book:

"It's the book that I wish existed years ago when I started my Python journey. [...] After reading this book your skills will grow and you will be able solve even more complex problems that can improve our world."

- Carol Willing, CPython Core Developer & Member of the CPython Steering Council

"CPython Internals is a great (and unique) resource for anybody looking to take their knowledge of Python to a deeper level."

- Dan Bader, Author of Python Tricks

"There are a ton of books on Python which teach the language, but I haven't really come across anything that would go about explaining the internals to those curious minded."

- Milan Patel, Vice President at (a major investment bank)

"I can recommend CPython Internals to anyone who wants to get going with hacking on CPython."

- Guido van Rossum, Creator of Python

商品描述(中文翻譯)

透過 Python 3.9 解譯器的導覽:深入了解 Python 語言的內部運作,從原始碼編譯 Python 解譯器,並參與 CPython 的開發。

有些 Python 的部分是否讓你覺得像魔法一樣?

本書以易於理解和實踐的方式解釋了 Python 解譯器的概念、思想和技術細節。

一旦你了解了 Python 在解譯器層面的運作方式,你就可以優化你的應用程式,充分發揮 Python 的威力。

閱讀本書後,你將能夠:

- 閱讀並導覽 CPython 3.9 解譯器的原始碼。你將深入理解和欣賞列表、字典和生成器等概念的內部運作方式。
- 更改 Python 語法並從頭開始編譯自己的 CPython 版本。你將使用新功能自訂 Python 核心資料類型並執行 CPython 的自動化測試套件。
- 掌握 Python 的記憶管理能力並使用並行性和併發性擴展你的 Python 程式碼。
- 像專業人士一樣調試 C 和 Python 程式碼。分析和評估你的 Python 程式碼和運行時的效能。
- 參與 CPython 的開發並了解如何貢獻給未來版本的 Python 解譯器和標準程式庫。作為「Python 核心開發人員」回饋社群的感覺有多棒?

這本書將涵蓋 CPython 內部運作的關鍵概念,並提供視覺化解釋。

書中的每一頁都經過精心設計,具有美麗的排版和程式碼示例的語法突出顯示。

關於作者:

Anthony Shaw 是 CPython 的貢獻者和 PyCon 演講者。他擁有計算機科學學士學位,並擁有超過 8 年的 Python 開發經驗。Anthony 也是 Python 軟體基金會的成員和開源 Apache 基金會的成員。

Python 開發者對本書的評價:

「這是我希望多年前在我開始 Python 之旅時存在的書籍。[...] 閱讀完這本書後,你的技能將增長,你將能夠解決更複雜的問題,改善我們的世界。」

- Carol Willing,CPython 核心開發人員和 CPython Steering Council 成員

「CPython Internals 是一個很棒(且獨特)的資源,適合任何想要深入了解 Python 的人。」

- Dan Bader,Python Tricks 作者

「有很多關於 Python 的書籍教授語言本身,但我還沒有遇到任何解釋內部運作的書籍。」

- Milan Patel,某大型投資銀行副總裁

「我推薦 CPython Internals 給任何想要開始研究 CPython 的人。」

- Guido van Rossum,Python 創造者