-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Invalid signature of PyUnicodeWriter_WriteUCS4() #146143
Copy link
Copy link
Closed
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, 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.15pre-release feature fixes, bugs and security fixespre-release feature fixes, 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
Fields
Give feedbackNo fields configured for issues without a type.
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