News for hackers. Stuff that matters.
Re:How Python bytecode is executed by r4victor on Sunday November 08, 2020 @07:49AM (#25025456)
Hi! This is part 4 of my Python behind the scenes series. The goal of this post is to understand how the CPython VM executes Python bytecode. You'll learn:

  - what is the evaluation loop and how it's implemented
  - when and how a thread may stop executing the bytecode to 
    release the GIL
  - how CPython computes things
  - how CPython handles exceptions and implements statements 
    like try-except, try-finally and with
I appreciate your feedback! Thanks!
Re:How Python bytecode is executed by heinrichhartman on Monday November 09, 2020 @02:37PM (#25038870)
Really enjoyed the read! Thanks for taking the time to write this down.

It's easy to forget, that if you are running "Python" in production, you are actually running CPython on a x86 VM configured with a bunch of *.py files. When things go sideways, you might find yourself in a situation where knowing CPython internals becomes relevant.

Re:How Python bytecode is executed by borishn on Monday November 09, 2020 @03:50PM (#25039722)
Thanks Victor, this is really useful and well written.
Re:How Python bytecode is executed by alexpetralia on Monday November 09, 2020 @01:18PM (#25037770)
This looks like great information. Thanks for sharing!