Monkeypatch the python interpreter and debugger to print integer results in hex
Project description
monkeyhex.py is a small library to assist users of the python shell who work in contexts where printed numbers are more usefully viewed in hexadecimal.
Monkeyhex, as the name suggests, monkeypatches the system displayhook as well as the pprint and pdb modules to format integers as hex. To use it, just import the library and all future results will be formatted. To view a result in decimal again, put the expression in a print statement.
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 Distribution
monkeyhex-1.7.4.tar.gz
(3.8 kB
view details)
File details
Details for the file monkeyhex-1.7.4.tar.gz
.
File metadata
- Download URL: monkeyhex-1.7.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a646096dd3114ee8a7c6f30363f38c288ec56c4e032c8fc7e681792b604dd122 |
|
MD5 | 2156f741fd6c761a7d4f9b9b14a5344e |
|
BLAKE2b-256 | ed012c5198ffbdc6aaede2ffb8c281bbc0c791569d3a78d4c6a842a8e9256993 |