<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Include/internal, branch enum-lost-fixes</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] Fix typos in the Include directory (GH-28745) (GH-28789)</title>
<updated>2021-10-07T13:00:23+00:00</updated>
<author>
<name>Christian Clauss</name>
<email>cclauss@me.com</email>
</author>
<published>2021-10-07T13:00:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f6798391b5d61bb514ec285308a2ccd16b7188dc'/>
<id>f6798391b5d61bb514ec285308a2ccd16b7188dc</id>
<content type='text'>
(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] Remove trailing spaces (GH-28709)</title>
<updated>2021-10-03T17:03:49+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-10-03T17:03:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=93242d7a2ad8c22f72ff84b63ed9046d32f6aa8e'/>
<id>93242d7a2ad8c22f72ff84b63ed9046d32f6aa8e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)</title>
<updated>2021-09-21T23:33:59+00:00</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2021-09-21T23:33:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8c1e1da565bca9cec792323eb728e288715ef7c4'/>
<id>8c1e1da565bca9cec792323eb728e288715ef7c4</id>
<content type='text'>
Co-authored-by: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;
Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;
(cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29)

Co-authored-by: Mohamad Mansour &lt;66031317+mohamadmansourX@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;
Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;
(cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29)

Co-authored-by: Mohamad Mansour &lt;66031317+mohamadmansourX@users.noreply.github.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:19+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-09-08T16:32:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.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>[3.10] bpo-44654: Do not export the union type related symbols (GH-27223). (GH-27225)</title>
<updated>2021-07-18T15:37:41+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-07-18T15:37:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a6670cdf77aab2b1ee7be0b9df060dcac2a2dc48'/>
<id>a6670cdf77aab2b1ee7be0b9df060dcac2a2dc48</id>
<content type='text'>
(cherry picked from commit 8f50f44592190b5a8cb115f0d58d577036e68308)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 8f50f44592190b5a8cb115f0d58d577036e68308)
</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] bpo-44654: Refactor and clean up the union type implementation (GH-27196) (GH-27219)</title>
<updated>2021-07-17T21:10:21+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-07-17T21:10:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=03aad3049d1591c76a219dfe089e5367f88f167e'/>
<id>03aad3049d1591c76a219dfe089e5367f88f167e</id>
<content type='text'>
(cherry picked from commit 0fd27375cabd12e68a2f12cfeca11a2d5043429e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 0fd27375cabd12e68a2f12cfeca11a2d5043429e)
</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) (GH-27207)</title>
<updated>2021-07-17T19:14:57+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-07-17T19:14:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2d055ce13250a4074f66a945381a149a3cf8c46f'/>
<id>2d055ce13250a4074f66a945381a149a3cf8c46f</id>
<content type='text'>
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
Co-authored-by: Guido van Rossum &lt;gvanrossum@gmail.com&gt;.
(cherry picked from commit c45fa1a5d9b419cf13ad4b5a7cb453956495b83e)

Co-authored-by: Yurii Karabas &lt;1998uriyyo@gmail.com&gt;
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
Co-authored-by: Guido van Rossum &lt;gvanrossum@gmail.com&gt;.
(cherry picked from commit c45fa1a5d9b419cf13ad4b5a7cb453956495b83e)

Co-authored-by: Yurii Karabas &lt;1998uriyyo@gmail.com&gt;
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. (GH-26808) (GH-26844)</title>
<updated>2021-06-22T07:10:23+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-06-22T07:10:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=cf739332bd039cd2303b58663a804f784883820d'/>
<id>cf739332bd039cd2303b58663a804f784883820d</id>
<content type='text'>
* bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated.
(cherry picked from commit 92c2e91580521ba5c85aa3205a0211df5b48689b)

Co-authored-by: Russell Keith-Magee &lt;russell@keith-magee.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated.
(cherry picked from commit 92c2e91580521ba5c85aa3205a0211df5b48689b)

Co-authored-by: Russell Keith-Magee &lt;russell@keith-magee.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-44184: Fix subtype_dealloc() for freed type (GH-26274) (GH-26290)</title>
<updated>2021-05-21T22:50:11+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-21T22:50:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=50b0d148a68072292832eb69bdf1815b8059355f'/>
<id>50b0d148a68072292832eb69bdf1815b8059355f</id>
<content type='text'>
Fix a crash at Python exit when a deallocator function removes the
last strong reference to a heap type.

Don't read type memory after calling basedealloc() since
basedealloc() can deallocate the type and free its memory.

_PyMem_IsPtrFreed() argument is now constant.
(cherry picked from commit 615069eb08494d089bf24e43547fbc482ed699b8)

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a crash at Python exit when a deallocator function removes the
last strong reference to a heap type.

Don't read type memory after calling basedealloc() since
basedealloc() can deallocate the type and free its memory.

_PyMem_IsPtrFreed() argument is now constant.
(cherry picked from commit 615069eb08494d089bf24e43547fbc482ed699b8)

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38530: Refactor and improve AttributeError suggestions (GH-25776)</title>
<updated>2021-05-03T15:47:27+00:00</updated>
<author>
<name>Dennis Sweeney</name>
<email>36520290+sweeneyde@users.noreply.github.com</email>
</author>
<published>2021-05-03T15:47:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=80a2a4ed7d090fff2584302f07315d567109bca9'/>
<id>80a2a4ed7d090fff2584302f07315d567109bca9</id>
<content type='text'>
- Make case-swaps half the cost of any other edit
- Refactor Levenshtein code to not use memory allocator, and to bail early on no match.
- Add comments to Levenshtein distance code
- Add test cases for Levenshtein distance behind a debug macro
- Set threshold to `(name_size + item_size + 3) * MOVE_COST / 6`.
  - Reasoning: similar to `difflib.SequenceMatcher.ratio()` &gt;= 2/3:
```
"Multiset Jaccard similarity" &gt;= 2/3
matching letters / total letters &gt;= 2/3
(name_size - distance + item_size - distance) / (name_size + item_size) &gt;= 2/3
1 - (2*distance) / (name_size + item_size) &gt;= 2/3
1/3 &gt;= (2*distance) / (name_size + item_size)
(name_size + item_size) / 6 &gt;= distance
With rounding:
(name_size + item_size + 3) // 6 &gt;= distance
```

Co-authored-by: Pablo Galindo &lt;pablogsal@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Make case-swaps half the cost of any other edit
- Refactor Levenshtein code to not use memory allocator, and to bail early on no match.
- Add comments to Levenshtein distance code
- Add test cases for Levenshtein distance behind a debug macro
- Set threshold to `(name_size + item_size + 3) * MOVE_COST / 6`.
  - Reasoning: similar to `difflib.SequenceMatcher.ratio()` &gt;= 2/3:
```
"Multiset Jaccard similarity" &gt;= 2/3
matching letters / total letters &gt;= 2/3
(name_size - distance + item_size - distance) / (name_size + item_size) &gt;= 2/3
1 - (2*distance) / (name_size + item_size) &gt;= 2/3
1/3 &gt;= (2*distance) / (name_size + item_size)
(name_size + item_size) / 6 &gt;= distance
With rounding:
(name_size + item_size + 3) // 6 &gt;= distance
```

Co-authored-by: Pablo Galindo &lt;pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
