Mathspp Blog

342 391,958 32,910
articles words lines of code

Descriptors are not black magic and this article will show you that. In fact, you use descriptors every day and you don't even know it.

Learn how to use properties to add dynamic behaviour to your attributes.

How do you implement a case-insensitive (or caseless) dictionary? In this article we explore solutions where we inherit from the built-in dict, the abstract base class MutableMapping from the standard module collections.abc, and the UserDict in the standard module collections.