>- using a mutable object as default value or in a class attribute
Python noob here. Can you expand on that a little? Or perhaps link a post? I can't think of an example or how it'd impact memory
Python noob here. Can you expand on that a little? Or perhaps link a post? I can't think of an example or how it'd impact memory
The following is some pretty good reading on the matter, and the example given is also one that would lead to a memory leak:
https://stackoverflow.com/questions/1132941/least-astonishme...