π Canberra Python Meetup - Pipe-ifying Python by Alex Mirrlees-Black


Details
- π Network over π pizza and drinks πΊπ₯€ with fellow Python users π
- π Watch a presentation
- π£οΈ Discuss the presentation
- π₯ and maybe hit the local pub!
---
Pipe-ifying Python: The how and why of interpreter hacking
Have you ever thought about adding a feature to the Python language itself?
If you have, or just want to learn a bit about how Python works under the hood, we will step through the story of adding a small feature to a fork of Python, learning about compilers and interpreters along the way!
In languages such as OCaml and Elixir, a pipe operator (`|>`) can be used to thread the return value of a function through to the argument of the next, to reduce nesting and improve readability: it lets you turn `x |> f(a, b)` into `f(a, b, x)`. Frustrated by the lack of such an operator in Python, and armed with some previous experience in compilers, Alex started a side project to fix the problem herself!
In this talk Alex will step through the story of how and why she added this feature to a fork of Python she nicknamed 'Pypethon'. We will explore some of the internal workings of the Cpython interpreter, focusing on lexing, parsing and the abstract syntax tree. We will also explore why you might want to make changes to the interpreter, the design challenges you can face when adding new language features, as well as potential tradeoffs. No experience in compilers required!
Alex Mirrlees-Black (she/her β’ @scibuild@mathstodon.xyz) is a student at ANU, currently completing her honours in computer science. She has been a long time lover of languages, both for computers and people, and is always willing to share her passion for niche programming language features.
When she isn't dreaming of syntax trees and compiler optimisations, Alex enjoys playing the organ, board games, baking and being snobby about tea β.
---
π’ Interested in presenting? We'd love to have you, submit here!
π¬ Want to chat? Get in touch via slack!
---
Thanks to our sponsors: Linux Australia and ANU!
Want to sponsor our costs for pizza and drinks, and meet our enthusiastic members? Get in touch!

Every 1st Thursday of the month until December 4, 2025
π Canberra Python Meetup - Pipe-ifying Python by Alex Mirrlees-Black