Python Class Variable Mutation Trap Explained for Experienced Developers
A common Python pitfall involves mutable class variables being shared across all instances, producing unexpected behavior. When a list is defined as a class attribute, all instances reference the…
Read the full articleYou might also wanna read

The dangers of setattr: Avoiding Mass Assignment vulnerabilities in Python
In this post, we’ll examine the potential risks from Python’s setattr() function, and discuss ways to prevent Mass Assignment vulnerabilitie
Exploring Frozen Dictionaries in Python for Concurrent Programming
Dictionaries are ubiquitous in Python code; they are the data structure of choice for a wide va [...]
Exploring Python's __subclasshook__ and Pattern Matching Edge Cases
Let's make the CPython team regret adding pattern matching to Python!
Python Lists, Tuples and Sets: A Beginner's Guide
Store collections in Python with mutable lists, immutable tuples, and unique-value sets, plus indexing, methods, and a comprehension teaser.
Exploring Immutable-by-Default TypeScript: A Technical Experiment
I got it working with arrays and records, but couldn't make it work for regular objects.

The First Python Program That Actually Made Sense
How understanding Python data types helped me stop guessing, fix beginner mistakes, and finally understand what my code was doing. Photo by

Comments
Sign in to join the conversation.
No comments yet. Be the first.