Created
September 5, 2014 02:12
-
-
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.
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
| 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