]> granicus.if.org Git - python/commit
#2630: Implement PEP 3138.
authorGeorg Brandl <georg@python.org>
Wed, 11 Jun 2008 18:37:52 +0000 (18:37 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 11 Jun 2008 18:37:52 +0000 (18:37 +0000)
commit559e5d7f4d1155e95fb6f925c927a263f9196935
tree4688423e81e9ffed7a5b2c87c50b55419e8e885a
parentea6d58d9d3033436b52e84960b9571525a4f5412
#2630: Implement PEP 3138.
The repr() of a string now contains printable Unicode characters unescaped.
The new ascii() builtin can be used to get a repr() with only ASCII characters in it.

PEP and patch were written by Atsuo Ishimoto.
25 files changed:
Doc/c-api/object.rst
Doc/c-api/unicode.rst
Doc/library/functions.rst
Doc/library/stdtypes.rst
Doc/library/string.rst
Doc/using/cmdline.rst
Include/object.h
Include/unicodeobject.h
Lib/doctest.py
Lib/test/test_array.py
Lib/test/test_builtin.py
Lib/test/test_format.py
Lib/test/test_pyexpat.py
Lib/test/test_unicode.py
Misc/NEWS
Objects/object.c
Objects/stringlib/string_format.h
Objects/stringlib/stringdefs.h
Objects/stringlib/unicodedefs.h
Objects/unicodectype.c
Objects/unicodeobject.c
Objects/unicodetype_db.h
Python/bltinmodule.c
Python/pythonrun.c
Tools/unicode/makeunicodedata.py