When should default function arguments be evaluated?
I was writing my first app and I found a bug. The date time column in my database always had the same value. I found out that this value changed upon restarting the server.
This was the problematic piece of code:
def foo(param, now=datetime.now()):...
rahem027.hashnode.dev2 min read
Sean Charles
shizzleishappenin
Welcome to the Python club dude!
docs.python-guide.org/writing/gotchas