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 hashes)

Uploaded Source

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