r/programminghorror • • Oct 26 '26

Python I love Python

303 Upvotes

81 comments sorted by

View all comments

1

u/itemluminouswadison Oct 26 '26

It's a quirk of the language and something you should have learned and read about. The default arg gets created once upon func definition, not per invocation