r/programminghorror • • Oct 26 '26

Python I love Python

302 Upvotes

81 comments sorted by

View all comments

Show parent comment

1

u/Double_Cost4865 Oct 26 '26

It has it’s uses, I just wouldn’t provide default argument like that since it’s wrong. But it’s quite common to modify a list in place and have the changes persist outside the function scope