r/programminghorror • • Oct 26 '26

Python I love Python

306 Upvotes

81 comments sorted by

View all comments

Show parent comment

29

u/notjfd Oct 26 '26

The default value is fine as long as it is not a mutable object. So things like integers and strings are completely fine to use as default values.

-14

u/ZylonBane Oct 26 '26

Yes, we're all aware. Nobody has disputed that.