Python's missing debug print command and other development tools.
For more information, see documentation.
Just
If you've got python 3.7+ and pip
installed, you're good to go.
from devtools import debug whatever = [1, 2, 3] debug(whatever)
Outputs:
test.py:4 <module>: whatever: [1, 2, 3] (list)
That's only the tip of the iceberg, for example:
import numpy as np data = { 'foo': np.array(range(20)), 'bar': {'apple', 'banana', 'carrot', 'grapefruit'}, 'spam': [{'a': i, 'b': (i for i in range(3))} for i in range(3)], 'sentence': 'this is just a boring sentence.\n' * 4 } debug(data)
outputs:
devtools can be used without from devtools import debug
if you add debug
into __builtins__
in sitecustomize.py
.
For instructions on adding debug
to __builtins__
, see the installation docs.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4