Past Meetup

Exploring Python ByteCode

This Meetup is past

68 people went


This is the July CamPUG meeting. Normally some of us go on to the pub afterwards.

Jan Jedrzej Chwiejczak will talk about Exploring Python ByteCode

Have you ever wondered what is happening when you execute your Python programs? Would you like to gain insight into writing performance oriented code or be able to explain to your colleagues whether Python is an interpreted or compiled language?

If any of these questions spark your curiosity then please come round. I will take you on a walk in the forest of abstract syntax trees grown by lexers and parsers where compilers generate streams of bits understood and run by interpreters. We will examine together the "intermediate language" which expresses your code as machine instructions and look at the ways we can understand it for fun and profit using the dis module.

For the second part of this talk, we will pair up and try to apply what we learned to optimise some problematic Python code and understand how it looks to the Interpreter.

This is a beginner level talk and the only prerequisites are a curious mind, basic python knowledge and a laptop with Jupyter Notebook installed running Python 3.x. If you don't' have the latter rest assured there will be enough people with one around.

More details will follow...