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
# the idea was come from https://gist.github.com/jvanasco/1616707 | |
import types | |
def _var_dump(variable, depth = 0, not_new_line = False): | |
padding = " " * 4 * depth | |
key_padding = " " * 4 * (depth+1) | |
first_padding = '' if not_new_line else padding | |
not_new_line = True | |
depth+= 1 |