CPython Internals Explained (eBook)

CPython Internals Explained (eBook)

Ethan Garrett
Ethan Garrett
Prezzo:
€ 8,99
Compra EPUB
Prezzo:
€ 8,99
Compra EPUB

Formato

:
EPUB
Cloud: Scopri di più
Compatibilità: Tutti i dispositivi
Lingua: Inglese
Editore: Pragma Press
Codice EAN: 9798235033054
Anno pubblicazione: 2026
Scopri QUI come leggere i tuoi eBook
Abbonati a Kobo Plus per avere accesso illimitato a migliaia di eBook

Note legali

NOTE LEGALI

a) Garanzia legale, Pagamenti, Consegne, Diritto di recesso
b) Informazioni sul prezzo
Il prezzo barrato corrisponde al prezzo di vendita al pubblico al lordo di IVA e al netto delle spese di spedizione
Il prezzo barrato dei libri italiani corrisponde al prezzo di copertina.
I libri in inglese di Libraccio sono di provenienza americana o inglese.
Libraccio riceve quotidianamente i prodotti dagli USA e dalla Gran Bretagna, pagandone i costi di importazione, spedizione in Italia ecc.
Il prezzo in EURO è fissato da Libraccio e, in alcuni casi, può discostarsi leggermente dal cambio dollaro/euro o sterlina/euro del giorno. Il prezzo che pagherai sarà quello in EURO al momento della conferma dell'ordine.
In ogni caso potrai verificare la convenienza dei nostri prezzi rispetto ad altri siti italiani e, in moltissimi casi, anche rispetto all'acquisto su siti americani o inglesi.
c) Disponibilità
I termini relativi alla disponibilità dei prodotti sono indicati nelle Condizioni generali di vendita.

Disponibilità immediata
L'articolo è immediatamente disponibile presso Libraccio e saremo in grado di procedere con la spedizione entro un giorno lavorativo.
Nota: La disponibilità prevista fa riferimento a singole disponibilità.

Disponibile in giorni o settimane (ad es. "3-5-10 giorni", "4-5 settimane" )
L'articolo sarà disponibile entro le tempistiche indicate, necessarie per ricevere l'articolo dai nostri fornitori e preparare la spedizione.
Nota: La disponibilità prevista fa riferimento a singole disponibilità.

Prenotazione libri scolastici
Il servizio ti permette di prenotare libri scolastici nuovi che risultano non disponibili al momento dell'acquisto.

Attualmente non disponibile
L'articolo sarà disponibile ma non sappiamo ancora quando. Inserisci la tua mail dalla scheda prodotto attivando il servizio Libraccio “avvisami” e sarai contattato quando sarà ordinabile.

Difficile reperibilità
Abbiamo dei problemi nel reperire il prodotto. Il fornitore non ci dà informazioni sulla sua reperibilità, ma se desideri comunque effettuare l'ordine, cercheremo di averlo nei tempi indicati. Se non sarà possibile, ti avvertiremo via e-mail e l'ordine verrà cancellato.
Chiudi

Descrizione

Unlock the Secrets Behind Every Line of Python Code ? Build, modify, and debug CPython from source — on macOS, Linux, and Windows ? Trace Python code from raw text all the way through the compiler to bytecode execution ? Master memory management, the GIL, concurrency, and the Faster CPython optimizations ? Contribute to CPython and write your own high-performance C extensions Book Description Python is one of the world's most popular programming languages — but what actually happens when your code runs? CPython Internals Explained pulls back the curtain on Python's official interpreter, walking you through the complete journey from source code to execution with hands-on examples at every step. Starting with building CPython from scratch, you'll explore the PEG parser, the tokenizer, abstract syntax trees, and the bytecode compiler. You'll step inside the evaluation loop of the virtual machine, understand stack-based execution and frame objects, and learn how inline caching and adaptive specialization (PEP 659) make modern Python fast. The book then dives deep into memory management — covering reference counting, generational garbage collection, and debugging memory leaks with tracemalloc. You'll master Python's object model, discovering how integers, strings, lists, and dictionaries are implemented in C. Concurrency gets full coverage too: the GIL, threads, multiprocessing, async/await internals, and the new free-threading model (PEP 703). Later chapters cover profiling with cProfile and perf, the Faster CPython project, JIT compilation (PEP 744), testing and debugging with GDB/LLDB, and writing your own C extensions using Cython, pybind11, and HPy. What You Will Learn How to build CPython from source and navigate its codebase confidently How the PEG parser, tokenizer, AST, and compiler transform Python source into bytecode How the virtual machine executes bytecode using a stack-based evaluation loop How reference counting and generational garbage collection manage memory How built-in types like dicts, lists, and integers are implemented in C How the GIL works and what free-threading (PEP 703) changes How to profile, benchmark, and optimize Python at both Python and C levels How to write, build, and test your own C extension modules Who This Book Is For This book is for intermediate to advanced Python developers who want to go beyond application code and truly understand how Python works under the hood. It's ideal for engineers optimizing performance-critical systems, developers contributing to CPython or open source projects, and curious programmers who want to understand what really happens when Python runs. A basic familiarity with Python is assumed; prior C knowledge is helpful but not required — a C primer for Python programmers is included.