Exploring CPython's Bytecode

Exploring CPython's Bytecode

EuroPython Conference via YouTube Direct link

Unravelling Bytecode

2 of 38

2 of 38

Unravelling Bytecode

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Exploring CPython's Bytecode

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Unravelling Bytecode
  3. 3 Python: Compiler & VM
  4. 4 Python overview
  5. 5 Example Module
  6. 6 Executing the Bytecode
  7. 7 Optimisation
  8. 8 Structure of .pyc Files
  9. 9 Magic Number
  10. 10 Timestamp
  11. 11 Code Object Marshal module
  12. 12 Back to the Compiler Compile your own code object
  13. 13 Code Objects It's documented: Data model (Language Reference) Everything which is executed becomes a code
  14. 14 sum Code Object
  15. 15 Disassembler
  16. 16 First Taste of Bytecode (2) LOAD FAST
  17. 17 First Model of the VM
  18. 18 Reading Bytecode
  19. 19 Bytecode Arguments dis HAVE ARGUMENT = 90
  20. 20 First Eval Loop
  21. 21 Passing Arguments
  22. 22 Handling Bytecodes
  23. 23 LOAD FAST LOAD CONST
  24. 24 BINARY MULTIPLY
  25. 25 BINARY ADD
  26. 26 RETURN VALUE
  27. 27 The VM So Far
  28. 28 Disassembling the Module
  29. 29 STORE NAME LOAD NAME
  30. 30 CALL FUNCTION (2)
  31. 31 POP JUMP_IF_FALSE
  32. 32 JUMP FORWARD . POP TOP
  33. 33 Incomplete
  34. 34 EXTENDED ARG
  35. 35 Abusing Bytecode
  36. 36 The Tools
  37. 37 Improve Tracing
  38. 38 Questions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.