Skip to content

maxko87/PrintDent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages