<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python, branch v3.10.0b2</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-28146: Fix a confusing error message in str.format() (GH-24213)</title>
<updated>2021-05-13T21:24:49+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-13T21:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2d780237d95cd3d95401f52be2edeac8b458eb68'/>
<id>2d780237d95cd3d95401f52be2edeac8b458eb68</id>
<content type='text'>
Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 4aeee0b47b3a2b604bbac37040320ffc88c291f2)

Co-authored-by: Irit Katriel &lt;iritkatriel@yahoo.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 4aeee0b47b3a2b604bbac37040320ffc88c291f2)

Co-authored-by: Irit Katriel &lt;iritkatriel@yahoo.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] bpo-43933: Force RETURN_VALUE bytecodes to have line numbers (GH-26061)</title>
<updated>2021-05-13T13:11:41+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-05-13T13:11:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0acdf255a51b836c0b44f3676797620322974af3'/>
<id>0acdf255a51b836c0b44f3676797620322974af3</id>
<content type='text'>
* Guarantee that line number is set for returns.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Guarantee that line number is set for returns.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)</title>
<updated>2021-05-07T20:40:09+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-07T20:40:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=13de28f17af02563cb8c6d0f6da3c178a4241ff3'/>
<id>13de28f17af02563cb8c6d0f6da3c178a4241ff3</id>
<content type='text'>
(cherry picked from commit b2ec37a7224318d466e0877790ed740ce8b4867d)

Co-authored-by: Batuhan Taskaya &lt;isidentical@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit b2ec37a7224318d466e0877790ed740ce8b4867d)

Co-authored-by: Batuhan Taskaya &lt;isidentical@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)</title>
<updated>2021-05-07T03:18:42+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-07T03:18:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=569ca81adf0be92be8752f6cc6492117f9ef3c0b'/>
<id>569ca81adf0be92be8752f6cc6492117f9ef3c0b</id>
<content type='text'>
`convertitem()` raises `SystemError` when 'GH-' is used without `PY_SSIZE_T_CLEAN`.
This commit makes `skipitem()` raise it too.
(cherry picked from commit 4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0)

Co-authored-by: Inada Naoki &lt;songofacandy@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`convertitem()` raises `SystemError` when 'GH-' is used without `PY_SSIZE_T_CLEAN`.
This commit makes `skipitem()` raise it too.
(cherry picked from commit 4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0)

Co-authored-by: Inada Naoki &lt;songofacandy@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Correct location for syntax error in try-except (GH-25939)</title>
<updated>2021-05-06T12:38:50+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-05-06T12:38:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8d4b18429de504445a1338077e495090d91044b4'/>
<id>8d4b18429de504445a1338077e495090d91044b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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://91.123.203.49/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>
<entry>
<title>bpo-43754: Fix compiler warning in Python/compile.c (GH-25855)</title>
<updated>2021-05-03T15:20:46+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-05-03T15:20:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=39494285e15dc2d291ec13de5045b930eaf0a3db'/>
<id>39494285e15dc2d291ec13de5045b930eaf0a3db</id>
<content type='text'>
This fixes the following warning:

'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the following warning:

'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854)</title>
<updated>2021-05-03T14:50:24+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-05-03T14:50:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c2931d31f8ba7cf10044de276018c713ffc73592'/>
<id>c2931d31f8ba7cf10044de276018c713ffc73592</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583)</title>
<updated>2021-05-03T07:43:00+00:00</updated>
<author>
<name>Batuhan Taskaya</name>
<email>isidentical@gmail.com</email>
</author>
<published>2021-05-03T07:43:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ad106c68eb00f5e4af2f937107baff6141948cee'/>
<id>ad106c68eb00f5e4af2f937107baff6141948cee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)</title>
<updated>2021-05-02T20:02:10+00:00</updated>
<author>
<name>Brandt Bucher</name>
<email>brandt@python.org</email>
</author>
<published>2021-05-02T20:02:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0ad1e0384c8afc5259a6d03363491d89500a5d03'/>
<id>0ad1e0384c8afc5259a6d03363491d89500a5d03</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
