Duck Typing, Abstract Base Classes, and Context Managers in Python
Duck Typing and Polymorphism in Python
The principle of duck typing states: "If it walks like a duck and quacks like a duck, then it is a duck." In Python, this means that an object's behavior determines its classification rather than its inheritance hierarchy. If multiple classes implement the same method signature, they can be treat ...
Posted on Sat, 19 Sep 2026 16:19:03 +0000 by Deivas
Managing and Resetting Global Variables in Python
Global Variable Management in Python
Global variables in Python are defined outside of functions and have a program-wide scope. There are situations where you might need to reset these variables, particularly during iterative processes or testing scenarios. This article explores various approaches to effectively manage and reset global variable ...
Posted on Tue, 30 Jun 2026 17:09:02 +0000 by jbingman