summaryrefslogtreecommitdiffstats
path: root/Include/unicodeobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2011-10-03 12:42:39 (GMT)
committerVictor Stinner <vstinner@wyplay.com>2011-10-03 12:42:39 (GMT)
commit85041a54bd2712775fe152807ee3e76dea83b15a (patch)
tree5d55023ceb387a52a01374c02192ec20fdcf9d04 /Include/unicodeobject.h
parent3cf4637e4e15fb79bc741be37524199ed21c64b2 (diff)
downloadcpython-85041a54bd2712775fe152807ee3e76dea83b15a.zip
cpython-85041a54bd2712775fe152807ee3e76dea83b15a.tar.gz
cpython-85041a54bd2712775fe152807ee3e76dea83b15a.tar.bz2
_PyUnicode_CheckConsistency() checks utf8 field consistency
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r--Include/unicodeobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index d7c9fa7..1b6d1c9 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -225,6 +225,7 @@ typedef struct {
* compact = 1
* ready = 1
* ascii = 0
+ * utf8 != data
- string created by the legacy API (not ready):
@@ -246,6 +247,7 @@ typedef struct {
* compact = 0
* ready = 1
* data.any is not NULL
+ * utf8 = data if ascii is 1
String created by the legacy API becomes ready when calling
PyUnicode_READY().