Created
April 9, 2015 03:39
-
-
Save jpellerin/c8a45d3ad90ad0b779eb to your computer and use it in GitHub Desktop.
func param evaluation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import datetime | |
>>> def hello(date=datetime.datetime.now()): | |
... print date | |
... print datetime.datetime.now() | |
... | |
>>> hello() | |
2015-04-08 20:38:06.231901 | |
2015-04-08 20:38:12.647230 | |
>>> hello() | |
2015-04-08 20:38:06.231901 | |
2015-04-08 20:38:15.870946 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment