Why does this:
from datetime import datetime
from time import sleep,time
def test_func(tmp=datetime.now()):
print(tmp)
test_func()
sleep(10)
test_func()
..result in this:
2015-02-16 17:06:28.283351
2015-02-16 17:06:28.283351
..when I would expect this:
2015-02-16 17:06:28.283351
2015-02-16 17:06:38.283351
**Edit - changed the sleep to 10 seconds and the result is the same.