<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cpython.git/Python/errors.c, branch v3.10.6</title>
<subtitle>https://github.com/python/cpython.git</subtitle>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/'/>
<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://service.techsat.com/oss-git/cpython.git/commit/?id=904af3de2bef6d971463a564541cb6dadf22d7f8'/>
<id>904af3de2bef6d971463a564541cb6dadf22d7f8</id>
<content type='text'>
(cherry picked from commit fdcc46d9554094994f78bedf6dc9220e5d5ee668)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit fdcc46d9554094994f78bedf6dc9220e5d5ee668)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] bpo-45083: Include the exception class qualname when formatting an exception (GH-28119) (GH-28134)</title>
<updated>2021-09-08T16:32:19Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-09-08T16:32:19Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=6b996d61c96222d959d043b9424e8125c0efbb27'/>
<id>6b996d61c96222d959d043b9424e8125c0efbb27</id>
<content type='text'>
Co-authored-by: Erlend Egeberg Aasland &lt;erlend.aasland@innova.no&gt;
(cherry picked from commit b4b6342848ec0459182a992151099252434cc619)

Co-authored-by: Irit Katriel &lt;1055913+iritkatriel@users.noreply.github.com&gt;

* Use a private version of _PyType_GetQualName

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Erlend Egeberg Aasland &lt;erlend.aasland@innova.no&gt;
(cherry picked from commit b4b6342848ec0459182a992151099252434cc619)

Co-authored-by: Irit Katriel &lt;1055913+iritkatriel@users.noreply.github.com&gt;

* Use a private version of _PyType_GetQualName

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its context chain (GH-27626)</title>
<updated>2021-08-10T13:47:23Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-08-10T13:47:23Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=d86bbe3cff0abefc13e5462cca1fb3344d4a5b52'/>
<id>d86bbe3cff0abefc13e5462cca1fb3344d4a5b52</id>
<content type='text'>
Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com
(cherry picked from commit d5c217475c4957a8084ac3f92ae012ece5edc7cb)

Co-authored-by: Irit Katriel &lt;1055913+iritkatriel@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com
(cherry picked from commit d5c217475c4957a8084ac3f92ae012ece5edc7cb)

Co-authored-by: Irit Katriel &lt;1055913+iritkatriel@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27572)</title>
<updated>2021-08-03T10:10:38Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-08-03T10:10:38Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=8ce7f2f4ef04e19209f1dfd2a0cf50ddcd0e999f'/>
<id>8ce7f2f4ef04e19209f1dfd2a0cf50ddcd0e999f</id>
<content type='text'>
Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;
(cherry picked from commit 83ca46b7784b7357d82ec47b33295e09ed7380cb)

Co-authored-by: Noah &lt;33094578+coolreader18@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;
(cherry picked from commit 83ca46b7784b7357d82ec47b33295e09ed7380cb)

Co-authored-by: Noah &lt;33094578+coolreader18@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43914: Highlight invalid ranges in SyntaxErrors (#25525)</title>
<updated>2021-04-23T13:27:05Z</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-04-23T13:27:05Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=a77aac4fca9723b8fd52a832f3e9df13beb25113'/>
<id>a77aac4fca9723b8fd52a832f3e9df13beb25113</id>
<content type='text'>
To improve the user experience understanding what part of the error messages associated with SyntaxErrors is wrong, we can highlight the whole error range and not only place the caret at the first character. In this way:

&gt;&gt;&gt; foo(x, z for z in range(10), t, w)
  File "&lt;stdin&gt;", line 1
    foo(x, z for z in range(10), t, w)
           ^
SyntaxError: Generator expression must be parenthesized

becomes

&gt;&gt;&gt; foo(x, z for z in range(10), t, w)
  File "&lt;stdin&gt;", line 1
    foo(x, z for z in range(10), t, w)
           ^^^^^^^^^^^^^^^^^^^^
SyntaxError: Generator expression must be parenthesized</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To improve the user experience understanding what part of the error messages associated with SyntaxErrors is wrong, we can highlight the whole error range and not only place the caret at the first character. In this way:

&gt;&gt;&gt; foo(x, z for z in range(10), t, w)
  File "&lt;stdin&gt;", line 1
    foo(x, z for z in range(10), t, w)
           ^
SyntaxError: Generator expression must be parenthesized

becomes

&gt;&gt;&gt; foo(x, z for z in range(10), t, w)
  File "&lt;stdin&gt;", line 1
    foo(x, z for z in range(10), t, w)
           ^^^^^^^^^^^^^^^^^^^^
SyntaxError: Generator expression must be parenthesized</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43687: Py_Initialize() creates singletons earlier (GH-25147)</title>
<updated>2021-04-02T13:28:13Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-04-02T13:28:13Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=442ad74fc2928b095760eb89aba93c28eab17f9b'/>
<id>442ad74fc2928b095760eb89aba93c28eab17f9b</id>
<content type='text'>
Reorganize pycore_interp_init() to initialize singletons before the
the first PyType_Ready() call. Fix an issue when Python is configured
using --without-doc-strings.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reorganize pycore_interp_init() to initialize singletons before the
the first PyType_Ready() call. Fix an issue when Python is configured
using --without-doc-strings.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32381: Rewrite PyErr_ProgramText() (GH-23700)</title>
<updated>2020-12-08T22:51:26Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-12-08T22:51:26Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=815506d852daabc40e14ff0987c1142c0205fbe7'/>
<id>815506d852daabc40e14ff0987c1142c0205fbe7</id>
<content type='text'>
PyErr_ProgramText() now calls PyErr_ProgramTextObject().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyErr_ProgramText() now calls PyErr_ProgramTextObject().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)</title>
<updated>2020-12-08T14:42:42Z</updated>
<author>
<name>Hai Shi</name>
<email>shihai1992@gmail.com</email>
</author>
<published>2020-12-08T14:42:42Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=0f91f586ae9b76c3bb44559bd8cd473b1b8de5ff'/>
<id>0f91f586ae9b76c3bb44559bd8cd473b1b8de5ff</id>
<content type='text'>
Removed PyModule_GetWarningsModule() which is useless due to 
the _warnings module was converted to a builtin module in 2.6.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed PyModule_GetWarningsModule() which is useless due to 
the _warnings module was converted to a builtin module in 2.6.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42500: Fix recursion in or after except (GH-23568)</title>
<updated>2020-12-02T13:30:55Z</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-12-02T13:30:55Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=4e7a69bdb63a104587759d7784124492dcdd496e'/>
<id>4e7a69bdb63a104587759d7784124492dcdd496e</id>
<content type='text'>
* Use counter, rather boolean state when handling soft overflows.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use counter, rather boolean state when handling soft overflows.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42152: Use PyDict_Contains and PyDict_SetDefault if appropriate. (GH-22986)</title>
<updated>2020-10-26T10:47:57Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-10-26T10:47:57Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=b510e101f8b5b31276bf97b921ca9247162881d2'/>
<id>b510e101f8b5b31276bf97b921ca9247162881d2</id>
<content type='text'>
If PyDict_GetItemWithError is only used to check whether the key is in dict,
it is better to use PyDict_Contains instead.

And if it is used in combination with PyDict_SetItem, PyDict_SetDefault can
replace the combination.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If PyDict_GetItemWithError is only used to check whether the key is in dict,
it is better to use PyDict_Contains instead.

And if it is used in combination with PyDict_SetItem, PyDict_SetDefault can
replace the combination.</pre>
</div>
</content>
</entry>
</feed>
