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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file namedout-1.1-py2-none-any.whl.
File metadata
- Download URL: namedout-1.1-py2-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf7407556cf3e0b7faea8c98445eaf85dd11e47c0a87e07d5df751330b701c14
|
|
| MD5 |
a09fc66d7697f82c0edab9ae395dadda
|
|
| BLAKE2b-256 |
df6afaf17354a4f77e696c47db159d5ab4fe4e0c845780461b4f829f36bc4a33
|