It makes Python print the object representation in readable chars instead of the escaped string.
Project description
It makes Python print the object representation in readable chars instead of the escaped string.
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'Λλ']
Installation
You can install it via PyPI,
sudo pip install uniout
or download it manually.
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
uniout-0.2.1.tar.gz
(3.3 kB
view details)
File details
Details for the file uniout-0.2.1.tar.gz
.
File metadata
- Download URL: uniout-0.2.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d9f780aa3870b08f59db194b6b09b31098dfea24fc0984fe11c23b68605c87 |
|
MD5 | 59d706a1a4681aa6137f9d17dcea7545 |
|
BLAKE2b-256 | 318abd46bea3400b8b44a933076aa4733c2bd538a8f3a25ac70ee7951536b9aa |