Tech dobz

preparing a tiny bit of magic...

Python

Mutable Default Arguments are a Trap!

In Python, using mutable objects (like lists or dictionaries) as default argument values can lead to unexpected behavior. This happens because the default value is...

1
The Subtle Power of __slots__ in Python Classes

By default, Python classes are dynamic — you can add new attributes to objects at any time. This flexibility is great, but it comes at...

1