Skip to content

This repo will consist links and resources related to CPython.

Notifications You must be signed in to change notification settings

ShahriyarR/CPython_things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 

Repository files navigation

CPython_things

From Azerbaijan Python User Group for the world.

Find us here -> FB Group and here Telegram Group and azepug.az

This repo will consist links and resources related to CPython:

  • Aimed to be the open place for CPython things.
  • Will add blog posts, books or maybe some interesting notes related CPython.
  • Especially interested in adding more video links from conferences which I have found with my own notes.
  • Please if you see something new then send PR with new related information.
  • Expected to be huge README file.
  • I want to speak in English, Russian and Turkish. Please do not be surprised.

Books:

  1. Inside The Python Virtual Machine
  2. CPython book from realpython - you need to purchase it.

Repos:

  1. Python module to modify bytecode

Blog posts:

  1. Python/C API functions - sum/add 2 integers

  2. Why ‘int’ object is not iterable - because tp_iter is NULL

  3. Profiling CPython at Instagram

  4. Nice mixed internal topics in Turkish ysar.net

  5. Getting Started with Python Internals

  6. Eli Bendersky's Python Internals blog

  7. Understanding GIL

  8. Yaniv Aknin Python internals series

  9. Batuhan Taskaya's blog in english & Batuhan Taskaya's blog in turkish

Video Materials/Talks:

New additions:

  1. CPython internals: A ten-hour codewalk through the Python interpreter source code [+]

  2. Bytes in the Machine: Inside the CPython interpreter - PyCon 2015 [+]

  3. Exploring is never boring: understanding CPython without reading the code [+]

  4. CPython internals and the VM [+]

  5. A Bit about Bytes: Understanding Python Bytecode - PyCon 2018 [+]

  6. CPython internals: why bother? (James Powell) [+] (I said no)

  7. Hacking the CPython Interpreter | SciPy 2016 | James Powell [+] (I said no)

  8. Stepping Through CPython [+] (Extremely informative one!!!)

  9. Anjana Vakil - Exploring Python Bytecode [+]

  10. So you want to write an interpreter? [+] (Watch this again to catch in future!!!)

Related things:

From Source to Code: How CPython's Compiler Works - Brett Cannon [+]

  1. CPython - Bytecode and Virtual Machine - Stephane Wirtel [+] (you can use slides from this talk)

Extra links: https://wirtel.be/talk/

Seems to be same thing -> https://www.youtube.com/watch?v=ZkAc6hzGun4 [+]

Seems to be same thing but a bit different may whatch it again maybe -> https://www.youtube.com/watch?v=pEwewgHQr74 [+]

  1. Armin Ronacher – Binary Python: Introducing Native Code [+] This thing is about packages, building, preparing python things etc.

  2. How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework [+] Extremely valuable and informative talk.

  3. How you can contribute to Python [+] Well already known things for me.

  4. Знай и люби свой CPython во имя луны и великой справедливости, Александр Кошкин [+] Great talk in Russian.

  5. Garbage Collection in CPython [+]

  6. Nina Zakharenko - Memory Management in Python - The Basics - PyCon 2016 [+]

  7. «Память и Python. Что надо знать для счастья?» Алексей Кузьмин, ЦНС [+] Notes to look:

  • objgraph -> lib
  • pympler -> lib
  • memory_profiler -> @profile adding top of the function; mprof run + mprof plot
  • memoryview
  • struct
  1. Contribute to CPython, Дмитрий Алимов / PiterPy Meetup #4 [+]

  2. Core Development Panel: Юрий Селиванов, Андрей Светлов и Christian Heimes [+] This is talf of core developers.

  3. Python Data Structures implementation list, dict: how does CPython actually implement them? [+] Advance level talk. Watch it in the future again!!!

  4. Emily Morehouse-Valcarcel - The AST and Me - PyCon 2018 [+] Notes:

  • This talk is about Abstract Syntax Trees an internal view of Python code execution. Modules:
  • ast
  • astor
  • meta
  • codegen
  1. David Beazley - Reinventing the Parser Generator - PyCon 2018 [+] Explaining how actually the Lexer and YACC works. About Sly and Ply project. Watch it again to get what is Lexer and Parser basically.

  2. A. Skrobov - How CPython parser works, and how to make it work better [+]

  3. What's up with th@? Adding an Operator to CPython [+]

Nice slides - can be used for further explorations. This is about adding new operator into CPython

  1. Larry Hastings - Removing Python's GIL: The Gilectomy - PyCon 2016 [+]

  2. Larry Hastings The Gilectomy How's It Going PyCon 2017 [+] Techincally in-depth advance talk which is hard to catch for me now. But it is a matter of time.

  3. Larry Hastings - Python's Infamous GIL [+]

  4. Everything You Always Wanted to Know About Memory in Python But Were Afraid to Ask [+] Despite the name of the talk - there is no such extraordinary thing to learn from here, because I am already aware of those things.

  5. "Внутренности" CPython, часть II / Никита Лесников / Wargaming [Python Meetup 30.08.2013] [+]

  6. Fun with cPython memory allocator [+]

  7. Here be dragons: some elegant and ugly hacks in CPython by Nick Coghlan - [+] interesting talk.

  8. Petr Viktorin - Bytecodes and stacks: A look at CPython’s compiler and its execution model [+] - extremely informative details.

  9. CPython byte-code and code-injection by Tom Zickel [+]

  10. Vlad Sydorenko — Internals of CPython memory [+]

  11. Jesús Espino - Playing with CPython Objects Internals [+] -> nice tricks with ctypes

  12. Jeethu Rao - Faster Python startup [+] -> not clear what is going here.

  13. Открытый урок «Внутреннее устройство интерпретатора CPython» [+] -> Internal talks about CPython adding new command etc in Russian.

About

This repo will consist links and resources related to CPython.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published