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

Python Seaborn Tutorial (Gotta Catch ‘Em All)

In this step-by-step Seaborn tutorial, you’ll learn how to use one of Python’s most convenient libraries for data visualization. For those who’ve tinkered with Matplotlib before, you may have wondered, “why does it take me 10 lines of code just to make a ... (more…)

Read more »

C for Python Programmers

In this tutorial, you'll learn the basics of the C language, which is used in the source code for CPython, the most popular Python implementation. Learning C is important for Python programmers interested in contributing to CPython. (more…)

Read more »