]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyUnicode_Ready() now sets ascii=1 if maxchar < 128
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Oct 2011 11:53:37 +0000 (13:53 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Oct 2011 11:53:37 +0000 (13:53 +0200)
commita3b334da6dd0477e5bf144934d184bc0b3e3779b
tree9f52ceabf86e5c992b45cfa8582cd98e1877031e
parent1b4f9ceca79206770215c9cbb0b2de532dba4aec
PyUnicode_Ready() now sets ascii=1 if maxchar < 128

ascii=1 is no more reserved to PyASCIIObject. Use
PyUnicode_IS_COMPACT_ASCII(obj) to check if obj is a PyASCIIObject (as before).
Include/unicodeobject.h
Objects/unicodeobject.c
Tools/gdb/libpython.py