<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Parser/string_parser.c, branch 3.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Parser/string_parser.c?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Parser/string_parser.c?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2025-06-02T15:55:48Z</updated>
<entry>
<title>[3.10] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133944) (GH-134345)</title>
<updated>2025-06-02T15:55:48Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2025-06-02T15:55:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ab9893c40609935e0d40a6d2a7307ea51aec598b'/>
<id>urn:sha1:ab9893c40609935e0d40a6d2a7307ea51aec598b</id>
<content type='text'>
If the error handler is used, a new bytes object is created to set as
the object attribute of UnicodeDecodeError, and that bytes object then
replaces the original data. A pointer to the decoded data will became invalid
after destroying that temporary bytes object. So we need other way to return
the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal().

_PyBytes_DecodeEscape() does not have such issue, because it does not
use the error handlers registry, but it should be changed for compatibility
with _PyUnicode_DecodeUnicodeEscapeInternal().
(cherry picked from commit 9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e)
(cherry picked from commit 6279eb8c076d89d3739a6edb393e43c7929b429d)
(cherry picked from commit a75953b347716fff694aa59a7c7c2489fa50d1f5)
(cherry picked from commit 0c33e5baedf18ebcb04bc41dff7cfc614d5ea5fe)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
</content>
</entry>
<entry>
<title>gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895) (#94911)</title>
<updated>2022-07-16T21:06:33Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-07-16T21:06:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=964431eaeb1905a95cb1bd745d0b9c0052db4b94'/>
<id>urn:sha1:964431eaeb1905a95cb1bd745d0b9c0052db4b94</id>
<content type='text'>
(cherry picked from commit 2e9da8e3522764d09f1d6054a2be567e91a30812)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>gh-93418: Fix an assert when an f-string expression is followed by an '=', but no closing brace. (gh-93419) (gh-93423)</title>
<updated>2022-06-02T01:04:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-06-02T01:04:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=855be47a02e68bf9217ef8ab79dbd94ddc3298f1'/>
<id>urn:sha1:855be47a02e68bf9217ef8ab79dbd94ddc3298f1</id>
<content type='text'>
(cherry picked from commit ee70c70aa93d7a41cbe47a0b361b17f9d7ec8acd)

Co-authored-by: Eric V. Smith &lt;ericvsmith@users.noreply.github.com&gt;

Co-authored-by: Eric V. Smith &lt;ericvsmith@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-46762: Fix an assert failure in f-strings where &gt; or &lt; is the last character if the f-string is missing a trailing right brace. (GH-31365)</title>
<updated>2022-02-16T11:16:05Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-02-16T11:16:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3d407b931156bc3ee5ae131de2f2babad831ccb2'/>
<id>urn:sha1:3d407b931156bc3ee5ae131de2f2babad831ccb2</id>
<content type='text'>
(cherry picked from commit ffd9f8ff84ed53c956b16d027f7d2926ea631051)

Co-authored-by: Eric V. Smith &lt;ericvsmith@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) (GH-30866)</title>
<updated>2022-01-25T03:13:11Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-01-25T03:13:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=894e8c13484822458d53cc77c9265b7a88450a4b'/>
<id>urn:sha1:894e8c13484822458d53cc77c9265b7a88450a4b</id>
<content type='text'>
* bpo-46503: Prevent an assert from firing.  Also fix one nearby tiny PEP-7 nit.

* Added blurb.
(cherry picked from commit 0daf72194bd4e31de7f12020685bb39a14d6f45e)

Co-authored-by: Eric V. Smith &lt;ericvsmith@users.noreply.github.com&gt;

Co-authored-by: Eric V. Smith &lt;ericvsmith@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463)</title>
<updated>2022-01-11T16:33:08Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-01-11T16:33:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=19a85501cee24a6e426a431243d0adcb5664c6fe'/>
<id>urn:sha1:19a85501cee24a6e426a431243d0adcb5664c6fe</id>
<content type='text'>
(cherry picked from commit 6fa8b2ceee38187b0ae96aee12fe4f0a5c8a2ce7)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28943)</title>
<updated>2021-10-14T17:02:20Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-10-14T17:02:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0bff4ccbfd3297b0adf690655d3e9ddb0033bc69'/>
<id>urn:sha1:0bff4ccbfd3297b0adf690655d3e9ddb0033bc69</id>
<content type='text'>
They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit c96d1546b11b4c282a7e21737cb1f5d16349656d)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
</content>
</entry>
<entry>
<title>[3.10] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27743)</title>
<updated>2021-08-12T16:41:21Z</updated>
<author>
<name>Pablo Galindo Salgado</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-08-12T16:41:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c28c2e1cb0dd5fc8b17514e2c4ee17415af733a4'/>
<id>urn:sha1:c28c2e1cb0dd5fc8b17514e2c4ee17415af733a4</id>
<content type='text'>
(cherry picked from commit 8e832fb2a2cb54d7262148b6ec15563dffb48d63)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] Add more const modifiers. (GH-26691). (GH-26692)</title>
<updated>2021-06-12T17:44:32Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-06-12T17:44:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c43317d41e7248405f40864bcc62f675805f4fd0'/>
<id>urn:sha1:c43317d41e7248405f40864bcc62f675805f4fd0</id>
<content type='text'>
(cherry picked from commit be8b631b7a587aa781245e14c8cca32970e1be5b)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)</title>
<updated>2021-06-08T00:36:19Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-06-08T00:36:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d80f4265db63a1692455abb8d1c77d0d72151bbb'/>
<id>urn:sha1:d80f4265db63a1692455abb8d1c77d0d72151bbb</id>
<content type='text'>
(cherry picked from commit ffd87b7093109c279caf8e3ca060f408a102388a)

Co-authored-by: Ned Batchelder &lt;ned@nedbatchelder.com&gt;</content>
</entry>
</feed>
