MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1xfxtnx/i_love_python/19roweb96hvuq/?context=3
r/programminghorror • u/nakurtag • 29d ago
81 comments sorted by
View all comments
Show parent comment
12
Default data defined at the function level is perfectly normal, in many languages string literals live in the code too, they don't get copied every time they are used. What's more disturbing to me is that the default data is mutable.
View all comments
Show parent comment
12
u/4xe1 28d ago edited 28d ago •
Default data defined at the function level is perfectly normal, in many languages string literals live in the code too, they don't get copied every time they are used. What's more disturbing to me is that the default data is mutable.