Skip to content

Instantly share code, notes, and snippets.

@jpellerin
Created April 9, 2015 03:39
Show Gist options
  • Save jpellerin/c8a45d3ad90ad0b779eb to your computer and use it in GitHub Desktop.
Save jpellerin/c8a45d3ad90ad0b779eb to your computer and use it in GitHub Desktop.
func param evaluation
>>> 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