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

MVPy: Minimum Viable Python

Over 29 posts spanning 2 years, this is the final post in my blog series on Python's syntactic sugar. I had set out to find all of the Python 3.8 syntax that

Unravelling Python's classes

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

Unravelling ellipsis

... [https://docs.python.org/3/reference/datamodel.html?highlight=ellipsis#the-standard-type-hierarchy] is the Ellipsis singleton. Shortest syntactic sugar blog post [https://snarky.ca/tag/syntactic-sugar/] I have written. 😁

Unravelling literals

In this post of my syntactic sugar series, I want to tackle literals. Now some literals don't really require any code changes and are really just an alternative way to write the same

© 2013 Brett Cannon