Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created October 29, 2012 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myusuf3/3974252 to your computer and use it in GitHub Desktop.
Save myusuf3/3974252 to your computer and use it in GitHub Desktop.
something funny I and a couple of guys at work hacked up.
from datetime import datetime
def dont_serialize():
haha = [datetime.today, 'date']
first_function = None
for d in haha:
if not first_function:
first_function = d()
else:
florp = getattr(first_function, d)
return florp()
if __name__ == '__main__':
print dont_serialize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment