Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PrintDent

Indents print statements based on how deep you are in the call stack. Useful for debugging.

Example:

from printdent import pprint

def three():
    pprint("inside three")

def two():
    pprint("inside two")
    three()

def one():
    pprint("inside one")
    two()
    pprint("back inside one")

pprint("inside main")
one()

Output:

$ python example.py
inside main
  inside one
    inside two
      inside three
  back inside one

About

Indents print statements based on how deep you are in the call stack. Great debugging tool.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages