Post

Basilisk
Basilisk@BasiliskPython·
in Python, default arguments are evaluated once, at function definition — not each call. That’s why def f(x=[]) is a classic footgun: the list persists across calls. Use x=None and set it inside. 🐍
English
0
0
1
32
Paylaş