The Python programming language

Unravelling `lambda` expressions

When I first wrote my series on Python's syntactic sugar, I left out lambda expressions as I knew I couldn't unravel them without unravelling assignment expressions. Luckily, I solved that problem, so now

Unravelling assignment expressions

As part of my series on Python's syntactic sugar, I initially skipped tackling conditional expressions because I made them more complicated than I needed to in my head. 😅 But there is some key

Unravelling `if` statements

After the initial posting of my summary post about my syntactic sugar series, I received the following reply to one of my tweets: 🤔 wondering… ‘if/else’ (14 on your list) can be implemented

Unravelling Python's classes

For the second-to-last post in my syntactic sugar series [] (the final post will be a summary/conclusion post), I am tackling what I expect is my largest and

Unravelling ellipsis

... [] is the Ellipsis singleton. Shortest syntactic sugar blog post [] I have written. 😁

© 2013 Brett Cannon