Skip to content

Commit 944886c

Browse files
authored
Mention threads
1 parent 26aa1c2 commit 944886c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Doc/c-api/unicode.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,6 +1926,7 @@ In particular, before it's filled with its final contents, a string:
19261926
- must not be :c:func:`converted to UTF-8 <PyUnicode_AsUTF8AndSize>`,
19271927
or another non-"canonical" representation,
19281928
- must not have its reference count changed,
1929+
- must not be accessed from another thread,
19291930
- must not be shared with code that might do one of the above.
19301931
19311932
This list is not exhaustive. Avoiding these uses is your responsibility;

0 commit comments

Comments
 (0)