<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/cpython, 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/Include/cpython?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/cpython?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>[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) (GH-93792)</title>
<updated>2022-06-16T07:19:29Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-06-16T07:19:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=968b238b5e2c8d9e9050b05ff6741544a66c104d'/>
<id>urn:sha1:968b238b5e2c8d9e9050b05ff6741544a66c104d</id>
<content type='text'>
It combines PyImport_ImportModule() and PyObject_GetAttrString()
and saves 4-6 lines of code on every use.

Add also _PyImport_GetModuleAttr() which takes Python strings as arguments.
(cherry picked from commit 6fd4c8ec7740523bb81191c013118d9d6959bc9d)
(cherry picked from commit d42b3689f4a14694f5b1ff75c155141102aa2557)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-46521: Fix codeop to use a new partial-input mode of the parser (GH-31010). (GH-31213)</title>
<updated>2022-02-08T12:25:15Z</updated>
<author>
<name>Pablo Galindo Salgado</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2022-02-08T12:25:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5b58db75291cfbb9b6785c9845824b3e2da01c1c'/>
<id>urn:sha1:5b58db75291cfbb9b6785c9845824b3e2da01c1c</id>
<content type='text'>
(cherry picked from commit 69e10976b2e7682c6d57f4272932ebc19f8e8859)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29732)</title>
<updated>2021-11-25T12:35:22Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-11-25T12:35:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ce5a6460aebdc51a810d2755782fe8f0d7918ec2'/>
<id>urn:sha1:ce5a6460aebdc51a810d2755782fe8f0d7918ec2</id>
<content type='text'>
Fix Python.h to build C extensions with Xcode: remove a relative
include from Include/cpython/pystate.h.

(cherry picked from commit 4ae26b9c1d0c33e3db92c6f305293f9240dea358)</content>
</entry>
<entry>
<title>bpo-45893: Add missing extern C to initconfig.h (GH-29761)</title>
<updated>2021-11-24T21:57:41Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-11-24T21:57:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cd85d91bc66a587ce2ba668c897a5ecf118733cc'/>
<id>urn:sha1:cd85d91bc66a587ce2ba668c897a5ecf118733cc</id>
<content type='text'>
Co-authored-by: Steve Dower &lt;steve.dower@python.org&gt;
(cherry picked from commit f4afc53bf68c8ded20b281cd1baa88a679b4a3fd)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) (GH-29661)</title>
<updated>2021-11-20T15:34:56Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2021-11-20T15:34:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=904af3de2bef6d971463a564541cb6dadf22d7f8'/>
<id>urn:sha1:904af3de2bef6d971463a564541cb6dadf22d7f8</id>
<content type='text'>
(cherry picked from commit fdcc46d9554094994f78bedf6dc9220e5d5ee668)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952)</title>
<updated>2021-10-14T18:23:39Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-10-14T18:23:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4641afef661e6a22bc64194bd334b161c95edfe2'/>
<id>urn:sha1:4641afef661e6a22bc64194bd334b161c95edfe2</id>
<content type='text'>
They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.raw_unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit 39aa98346d5dd8ac591a7cafb467af21c53f1e5d)

Co-authored-by: Serhiy Storchaka &lt;storchaka@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] Fix typos in the Include directory (GH-28745) (GH-28789)</title>
<updated>2021-10-07T13:00:23Z</updated>
<author>
<name>Christian Clauss</name>
<email>cclauss@me.com</email>
</author>
<published>2021-10-07T13:00:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f6798391b5d61bb514ec285308a2ccd16b7188dc'/>
<id>urn:sha1:f6798391b5d61bb514ec285308a2ccd16b7188dc</id>
<content type='text'>
(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)</content>
</entry>
<entry>
<title>[3.10] bpo-45307: Restore private C API function _PyImport_FindExtensionObject() (GH-28594)</title>
<updated>2021-09-28T21:12:50Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-09-28T21:12:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ec4e2ec241acb3bf4e04a351c06c0b05a1e4b7d2'/>
<id>urn:sha1:ec4e2ec241acb3bf4e04a351c06c0b05a1e4b7d2</id>
<content type='text'>
py2exe and PyOxidizer rely on this API.
It will be removed in Python 3.11.

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
</feed>
