-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Invalid signature of PyUnicodeWriter_WriteUCS4() #146143
Copy link
Copy link
Closed
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Currently the signature of
PyUnicodeWriter_WriteUCS4()isIt requires a pointer to mutable buffer of Py_UCS4, even if it does not mutate it. This is a bug which prevents the use of
PyUnicodeWriter_WriteUCS4()with immutable buffers of Py_UCS4.We need simply to add
const:Linked PRs