Created
October 29, 2012 15:40
-
-
Save myusuf3/3974252 to your computer and use it in GitHub Desktop.
something funny I and a couple of guys at work hacked up.
This file contains 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
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