Skip to main content

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


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.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file monkeyhex-1.3.tar.gz.

File metadata

  • Download URL: monkeyhex-1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for monkeyhex-1.3.tar.gz
Algorithm Hash digest
SHA256 9c08dce656f9e046a0465c73b3fe1b0ca9c0f3cdc579a56114645e0ffe4ebd3a
MD5 724623a964745a166a752f156710af64
BLAKE2b-256 d2d7bf71dcc5b1beb27fa222d14128cef2be26a8204eb71e02fd31c3898c4129

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page