skip to navigation
skip to content

Not Logged In

PrintDebug 0.0.5-1

A small debug printing module that prints extra info like filenames, function names, and line numbers. It can also recursively print lists, tuples, and dicts.

A small debug printing module that prints extra info like filenames, function names, and line numbers. It can also recursively print objects such as lists, tuples, and dicts.

More useful stuff may be added in the future.

Example Usage:

from printdebug import printdebug, printobject
def myfunction():
    printdebug('Hello from myfunction.')

myfunction()

# Output:
#   myfile.py line #3 in myfunction: Hello from myfunction.

o = {'key1': {'subkey1': 'value1', 'subkey2': 'value2'}}
printobject(o)

# Output:
#    key1:
#        subkey1:
#            value1
#        subkey2:
#            value2
 
File Type Py Version Uploaded on Size
PrintDebug-0.0.5-1.tar.gz (md5) Source 2014-09-21 15KB
  • Downloads (All Versions):
  • 10 downloads in the last day
  • 90 downloads in the last week
  • 334 downloads in the last month