Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of CPython Internals

    CPython Internals

    Anthony Shaw · 2021

    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.

    Programming
    Open LibraryAmazon
    Stats for nerds
    6recommend
    9mentions
    9people
    2020–2024years
    67% recommend33% neutral

    Mentions per year

    20202021202220232024

    What Hacker News says

    1. jstx1Oct 2022
      CPython Internals by Anthony Shaw - https://realpython.com/products/cpython-internals-book/

      Podcast episode with the author - https://talkpython.fm/episodes/show/240/a-guided-tour-of-the...

      thread
    2. modelviewpotatoApr 2022
      Some that I've read and enjoyed:

      - Introducing Python, 2nd Edition by Bill Lubanovic (Beginner Level)

      - Python Distilled, David M. Beazley (Beginner to Intermediate Level)

      - Effective Python (2nd Edition), Brett Slatkin (Intermediate Level)

      - Fluent Python (2nd Edition), Luciano Ramalho (Advanced Level)

      - CPython Internals, Anthony Shaw (Advanced Level)

      - Architecture Patterns with Python, Harry J. W. Percival & Bob Gregory (Advanced Level)

      thread
    3. RMPRJun 2021
      Effective Python by Brett Slatkin is very good, still going through the Second Edition, but I like the practical side of this book.

      If you want to go really deeper like the inner working of CPython I'd recommend Anthony Shaw's CPython internals. It has been on my radar for some time now, still going through the serie of blog posts from tenthousandmeters[0]

      0: https://tenthousandmeters.com/blog/python-behind-the-scenes-...

      thread
    4. lsllcJun 2021
      Thanks for the recommendation for Effective Python! As for the CPython Internals Series, I've been following that and it's really quite excellent (I just wish there was a dead-tree version of it -- I still prefer physical books).
      thread
    5. stonecharioteerDec 2020
      You should give a go at reading or recommending Anthony Shaw's excellent book[1] (or at the very least the free article on Real Python[2]).

      1. https://realpython.com/products/cpython-internals-book/

      2. https://realpython.com/cpython-source-code-guide/

      thread
    6. shaknaJul 2020
      If you're looking for a book describing the runtime and compiler, etc., maybe "CPython Internals"?
      thread

    Related

    Cover of Effective Python
    2012–2026

    Effective Python

    Brett Slatkin
    22 recommend · 45
    Cover of Introducing Python
    2022–2023

    Introducing Python

    Bill Lubanovic
    4 recommend · 5
    Cover of Fluent Python
    2015–2026

    Fluent Python

    Luciano Ramalho
    67 recommend · 108
    Python DistilledDavid M. Beazley
    2022–2026

    Python Distilled

    David M. Beazley
    9 recommend · 11
    Database InternalsAlex Petrov
    2019–2026

    Database Internals

    Alex Petrov
    31 recommend · 54
    Cover of The Rust Programming Language
    2015–2026

    The Rust Programming Language

    Steve Klabnik
    170 recommend · 257
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894
    Cover of Automate the Boring Stuff with Python
    2015–2026

    Automate the Boring Stuff with Python

    Al Sweigart
    75 recommend · 95