Skip to content

Instantly share code, notes, and snippets.

@karlcow
Created September 5, 2014 02:12
Show Gist options
  • Select an option

  • Save karlcow/14d135db52f9b82647dd to your computer and use it in GitHub Desktop.

Select an option

Save karlcow/14d135db52f9b82647dd to your computer and use it in GitHub Desktop.
testing python: Something I do time to time for getting a better understanding of what holds my variables during a quick test.
def blah(foo):
'''some function in the code'''
lol = another_func(foo)
# testing stuff
vartest = lol
'''
type: {0}
methods: {1}
repr: {2}
'''.format(type(vartest), dir(vartest), repr(vartest))
# more things
# more blahblah
return lol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment