Gotchas of early-bound function argument defaults in Python

I was reading a tweet about it yesterday and that didn’t stop me from pushing a code change in production with the same rookie mistake today. Consider this function: # src.py from __future__ import annotations import logging import time from datetime impo… Read more

Similar

Todo or Die – Python Edition

Python decorator for `TODO`s. Inspired by https://github.com/davidpdrsn/todo-or-die and https://github.com/searls/todo_or_die - GitHub - achedeuzot/py-todo-or-die: Python decorator for `TODO`s. Ins... (more…)

Read more »