This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

write values (and their names) to stdout in python script

Project Description

Debug output named values

warning:
  • not work in python console
  • not work in IDLE
  • only one entry point of dbg function for one source line

script:

from namedout import dbg
dbg(dict(a=9))

out:

dict(a=9) == {'a': 9}

script:

dbg(list(xrange(9)))

out:

list(xrange(9)) == [0, 1, 2, 3, 4, 5, 6, 7, 8]

script:

import os
import sys
a = 1
dbg(a, os.__name__, dir(os.path)[0], sys.modules.keys()[0])

out:

a == 1
os.__name__ == os
dir(os.path)[0] == __all__
sys.modules.keys()[0] == tokenize
Release History

Release History

This version
History Node

1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
namedout-1.1-py2-none-any.whl (3.8 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Nov 12, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting