Python quirks

Exception Chaining In Python

Today I read some Python code and I asked myself "mmm what? How does it work? What's the meaning of raising an exception from another one? In this article I'll answer on: What is an exception?What is an exception chaining?Why is it important to use it?How to chain exceptions in Python? Let's get started! Introduction… Continue reading Exception Chaining In Python

Python quirks

Structural Pattern Matching In Python

Once upon a time, Guido van Rossum, the Python creator, decided to reject a simple feature (PEP 3103): Switch case The reason for rejecting this PEP is: A quick poll during my keynote presentation at PyCon 2007 shows this proposal has no popular support. I therefore reject it.~ Guido van Rossum Lots of software developers… Continue reading Structural Pattern Matching In Python

Python quirks

Python’s Super Duper Function

Object-oriented programming (OOP) is one of the popular programming paradigms we have today. In this post, we'll understand how super function works and why it's important. I assume you're familiar with the OOP paradigm. Thus, I don't explain it in this post. There are lots of good materials related to this subject. Let's dive into… Continue reading Python’s Super Duper Function