DEV Community

Cover image for Never do this in Python!
David Armendáriz
David Armendáriz

Posted on

Never do this in Python!

Do you know what happens if you pass a mutable object as a default argument in Python? What can go wrong?

Latest comments (0)