Skip to main content

It makes Python print the object representation in readable chars instead of the escaped str

Project description

Print the object representation in readable unicode char instead of the code of char.

Usage

Just import this module.

import uniout

An Example

# test.py
data = ['中文', 'にほんご', u'Λλ']
print 'Before:', data
import uniout
print 'After :', data

Result of test.py:

Before: ['\xe4\xb8\xad\xe6\x96\x87', '\xe3\x81\xab\xe3\x81\xbb\xe3\x82\x93\xe3\x81\x94', u'\u039b\u03bb']
After : ['中文', 'にほんご', u'Λλ']

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

uniout-0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file uniout-0.2.tar.gz.

File metadata

  • Download URL: uniout-0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for uniout-0.2.tar.gz
Algorithm Hash digest
SHA256 7e99401f6c3fbc07b1035560bc861667df65e4ee2ba3e8148f0360f418a71970
MD5 a0e2336440e453ef3c77a2d638c403ac
BLAKE2b-256 b89c79ae3f114496b4fbf4d907cdc786063255d4acb971b94718c71779716523

See more details on using hashes here.

Provenance

Supported by

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