<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/clinic, branch 3.10</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842)</title>
<updated>2023-01-08T09:23:34+00:00</updated>
<author>
<name>Shantanu</name>
<email>12621235+hauntsaninja@users.noreply.github.com</email>
</author>
<published>2023-01-08T09:23:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a8702bb8c8487e500e5cfcf47759fa739489f122'/>
<id>a8702bb8c8487e500e5cfcf47759fa739489f122</id>
<content type='text'>
(cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7)

Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7)

Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] Correct CVE-2020-10735 documentation (GH-100306). (#100477)</title>
<updated>2022-12-24T02:08:27+00:00</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2022-12-24T02:08:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=88fe8d701af3316c8869ea18ea1c7acec6f68c04'/>
<id>88fe8d701af3316c8869ea18ea1c7acec6f68c04</id>
<content type='text'>
(cherry picked from commit 1cf3d78c92eb07dc09d15cc2e773b0b1b9436825)

Co-authored-by: Jeremy Paige &lt;ucodery@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 1cf3d78c92eb07dc09d15cc2e773b0b1b9436825)

Co-authored-by: Jeremy Paige &lt;ucodery@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96501)</title>
<updated>2022-09-02T16:51:49+00:00</updated>
<author>
<name>Gregory P. Smith</name>
<email>gps@google.com</email>
</author>
<published>2022-09-02T16:51:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8f0fa4bd10aba723aff988720cd26b93be99bc12'/>
<id>8f0fa4bd10aba723aff988720cd26b93be99bc12</id>
<content type='text'>
Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds.

This PR comes fresh from a pile of work done in our private PSRT security response team repo.

This backports https://github.com/python/cpython/pull/96499 aka 511ca9452033ef95bc7d7fc404b8161068226002

Signed-off-by: Christian Heimes [Red Hat] &lt;christian@python.org&gt;
Tons-of-polishing-up-by: Gregory P. Smith [Google] &lt;greg@krypto.org&gt;
Reviews via the private PSRT repo via many others (see the NEWS entry in the PR).

&lt;!-- gh-issue-number: gh-95778 --&gt;
* Issue: gh-95778
&lt;!-- /gh-issue-number --&gt;

I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds.

This PR comes fresh from a pile of work done in our private PSRT security response team repo.

This backports https://github.com/python/cpython/pull/96499 aka 511ca9452033ef95bc7d7fc404b8161068226002

Signed-off-by: Christian Heimes [Red Hat] &lt;christian@python.org&gt;
Tons-of-polishing-up-by: Gregory P. Smith [Google] &lt;greg@krypto.org&gt;
Reviews via the private PSRT repo via many others (see the NEWS entry in the PR).

&lt;!-- gh-issue-number: gh-95778 --&gt;
* Issue: gh-95778
&lt;!-- /gh-issue-number --&gt;

I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#).</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31861: Add aiter and anext to builtins (#23847)</title>
<updated>2021-03-23T22:47:21+00:00</updated>
<author>
<name>Joshua Bronson</name>
<email>jabronson@gmail.com</email>
</author>
<published>2021-03-23T22:47:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57'/>
<id>f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57</id>
<content type='text'>
Co-authored-by: jab &lt;jab@users.noreply.github.com&gt;
Co-authored-by: Daniel Pope &lt;mauve@mauveweb.co.uk&gt;
Co-authored-by: Justin Wang &lt;justin39@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: jab &lt;jab@users.noreply.github.com&gt;
Co-authored-by: Daniel Pope &lt;mauve@mauveweb.co.uk&gt;
Co-authored-by: Justin Wang &lt;justin39@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite (GH-24643)</title>
<updated>2021-02-28T22:41:09+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-02-28T22:41:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=af5fa13ef6f648fc7a7a33a7556db13887e7d643'/>
<id>af5fa13ef6f648fc7a7a33a7556db13887e7d643</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41435: Add sys._current_exceptions() function (GH-21689)</title>
<updated>2020-11-02T14:16:25+00:00</updated>
<author>
<name>Julien Danjou</name>
<email>julien@danjou.info</email>
</author>
<published>2020-11-02T14:16:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=64366fa9b3ba71b8a503a8719eff433f4ea49eb9'/>
<id>64366fa9b3ba71b8a503a8719eff433f4ea49eb9</id>
<content type='text'>
This adds a new function named sys._current_exceptions() which is equivalent ot
sys._current_frames() except that it returns the exceptions currently handled
by other threads. It is equivalent to calling sys.exc_info() for each running
thread.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a new function named sys._current_exceptions() which is equivalent ot
sys._current_frames() except that it returns the exceptions currently handled
by other threads. It is equivalent to calling sys.exc_info() for each running
thread.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847)</title>
<updated>2020-06-03T13:19:45+00:00</updated>
<author>
<name>Alex Povel</name>
<email>48824213+alexpovel@users.noreply.github.com</email>
</author>
<published>2020-06-03T13:19:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=df773f8c5454acebe08c31e7308597fa5a8bf5df'/>
<id>df773f8c5454acebe08c31e7308597fa5a8bf5df</id>
<content type='text'>
Just a brief grammar fix.

See also &lt;&gt;.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just a brief grammar fix.

See also &lt;&gt;.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40792: Make the result of PyNumber_Index() always having exact type int. (GH-20443)</title>
<updated>2020-05-28T07:33:45+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-05-28T07:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5f4b229df7812f1788287095eb6b138bb21876a4'/>
<id>5f4b229df7812f1788287095eb6b138bb21876a4</id>
<content type='text'>
Previously, the result could have been an instance of a subclass of int.

Also revert bpo-26202 and make attributes start, stop and step of the range
object having exact type int.

Add private function _PyNumber_Index() which preserves the old behavior
of PyNumber_Index() for performance to use it in the conversion functions
like PyLong_AsLong().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the result could have been an instance of a subclass of int.

Also revert bpo-26202 and make attributes start, stop and step of the range
object having exact type int.

Add private function _PyNumber_Index() which preserves the old behavior
of PyNumber_Index() for performance to use it in the conversion functions
like PyLong_AsLong().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636)</title>
<updated>2020-05-26T15:43:38+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-05-26T15:43:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=578c3955e0222ec7b3146197467fbb0fcfae12fe'/>
<id>578c3955e0222ec7b3146197467fbb0fcfae12fe</id>
<content type='text'>
Only __index__ should be used to make integer conversions lossless.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only __index__ should be used to make integer conversions lossless.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39489: Remove COUNT_ALLOCS special build (GH-18259)</title>
<updated>2020-02-03T14:17:15+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-02-03T14:17:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c6e5c1123bac6cbb4c85265155af5349dcea522e'/>
<id>c6e5c1123bac6cbb4c85265155af5349dcea522e</id>
<content type='text'>
Remove:

* COUNT_ALLOCS macro
* sys.getcounts() function
* SHOW_ALLOC_COUNT code in listobject.c
* SHOW_TRACK_COUNT code in tupleobject.c
* PyConfig.show_alloc_count field
* -X showalloccount command line option
* @test.support.requires_type_collecting decorator</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove:

* COUNT_ALLOCS macro
* sys.getcounts() function
* SHOW_ALLOC_COUNT code in listobject.c
* SHOW_TRACK_COUNT code in tupleobject.c
* PyConfig.show_alloc_count field
* -X showalloccount command line option
* @test.support.requires_type_collecting decorator</pre>
</div>
</content>
</entry>
</feed>
