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.

Author erlendaasland
Recipients corona10, erlendaasland, vstinner
Date 2021-03-16.19:25:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615922749.26.0.986651149983.issue43502@roundup.psfhosted.org>
In-reply-to
Content
PyUnicode_WRITE, PyUnicode_READ, and PyUnicode_READ_CHAR all reuse their arguments, and there's a lot of occurrences (58 AFAICS) where they are called with the increment operator applied to the index argument. For example:

Objects/unicodeobject.c:            PyUnicode_WRITE(kind, data, pos++, ch);
Modules/_io/textio.c:               c = PyUnicode_READ(kind, in_str, i++);
Objects/stringlib/unicode_format.h: c = PyUnicode_READ_CHAR(self->str.str, self->index++);


Would a single PR for all three of them be acceptable, Victor?
History
Date User Action Args
2021-03-16 19:25:49erlendaaslandsetrecipients: + erlendaasland, vstinner, corona10
2021-03-16 19:25:49erlendaaslandsetmessageid: <1615922749.26.0.986651149983.issue43502@roundup.psfhosted.org>
2021-03-16 19:25:49erlendaaslandlinkissue43502 messages
2021-03-16 19:25:49erlendaaslandcreate