This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add public C API for partial "unicode-escape" and "raw-unicode-escape" decoding
Type: enhancement Stage: patch review
Components: Unicode Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, lemburg, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

Created on 2021-10-14 18:40 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 28955 open serhiy.storchaka, 2021-10-14 19:00
Messages (1)
msg403932 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-10-14 18:40
The proposed PR adds C API functions PyUnicode_DecodeUnicodeEscapeStateful() and PyUnicode_DecodeRawUnicodeEscapeStateful() for partially decoding with "unicode-escape" and "raw-unicode-escape" encodings. It were the only multibyte text codecs which did not provide such interface.

They are neccessary for correct implementation of increment decoders and stream  readers (see issue45461 and issue45467).
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89635
2021-10-14 19:00:35serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request27244
2021-10-14 18:40:52serhiy.storchakacreate