Or Else! An Exploration of Obscure Control Flow - Amethyst Reese 🌸 (Nbpy2025) @NorthBayPython
Or Else! An Exploration of Obscure Control Flow - Amethyst Reese 🌸 (Nbpy2025)  @NorthBayPython
Uploaded April 2025 | Updated September 2026, 6 hours ago
Amethyst Reese 🌸

pretalx.northbaypython.org/nbpy-2025/talk/VJUUTA

Everyone knows how an if-else block works, but what about a for-else block? Or try-except-else? What do those do, and how can they help us write cleaner code? What other hidden gems await us in the halls of Python grammar? Come join us for an adventure into depths of the Python world less traveled.

We'll start with a brief look at the fundamentals of program control flow, and how our choices as developers influence the readability and maintainability of our code. We'll look at some easy ways to use lesser-known syntax elements to make common code patterns more obvious, and compare and contrast them with equivalent alternatives.

Next, we'll start to pull back the curtains a bit on how Python handles more complex control flow mechanisms, like generators and decorators, and look at ways to leverage those features to build higher order functionality. Lastly, we'll get a bit reckless and look at how Python makes it possible to create our own systems for control flow, and consider committing some light crimes in the name of code readability.

We might even implement the highly desired "do-while" loop while we're at it.

Sat Apr 26 10:50:00 2025 at Reis River Ranch

Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1
Or Else! An Exploration of Obscure Control Flow - Amethyst Reese 🌸 (Nbpy2025)Anonymous Functions (and Other Ways to Annoy Your Coworkers) - Joe Kaufeld - 2026Let The Computer Write The TestsThe Perfect Python Project - Glyph (Nbpy2024)How I turned a podcast into a business with Python (and some Other Tools we wont talk about)The Python Community Needs More Cats - Deb Nicholson - 2026Python In The Small - Glyph (Nbpy2025)Snek: A Python-Inspired Language for Tiny Embedded ComputersExploration-Oriented ProgrammingBeyond Programming Paradigms (with Python examples) - Luciano Ramalho (North Bay Python 2023)The Source of Change: Bettering Online Open Source Communities Can Begin with YouA-hunting We Will Go: Debugging pytest with Django - Cris Ewing (North Bay Python 2019)
North Bay Python |

"Or Else! An Exploration of Obscure Control Flow" - Amethyst Reese 🌸 (Nbpy2025)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER