mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
_PyUnicode_CheckConsistency() checks utf8 field consistency
This commit is contained in:
parent
3cf4637e4e
commit
85041a54bd
2 changed files with 8 additions and 0 deletions
|
@ -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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue