<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git, branch bpo-37741-importlib-metadata-docs-visible</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>bpo-37741: make importlib.metadata docs discoverable through a module directive.</title>
<updated>2021-04-14T23:28:35+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2021-04-14T23:28:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=aa67ee53322de02e81ca83f28d9ab99917a975f2'/>
<id>aa67ee53322de02e81ca83f28d9ab99917a975f2</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: Optimize the calculation of string sizes when offering suggestions (GH-25412)</title>
<updated>2021-04-14T23:03:43+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-04-14T23:03:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3fc65b97d09fd29272fdf60d2e567bfb070da824'/>
<id>3fc65b97d09fd29272fdf60d2e567bfb070da824</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43296: Handle sqlite3_value_blob() errors (GH-24674)</title>
<updated>2021-04-14T21:09:11+00:00</updated>
<author>
<name>Erlend Egeberg Aasland</name>
<email>erlend.aasland@innova.no</email>
</author>
<published>2021-04-14T21:09:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5cb601f956886b32641f818b5da347cc86a43db2'/>
<id>5cb601f956886b32641f818b5da347cc86a43db2</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: Make sure that failing to generate suggestions on failure will not propagate exceptions (GH-25408)</title>
<updated>2021-04-14T17:58:28+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-04-14T17:58:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e07f4ab26aaf08f90ebd9e6004af14fd6ef39351'/>
<id>e07f4ab26aaf08f90ebd9e6004af14fd6ef39351</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in 3.10's What's New documentation (GH-25409)</title>
<updated>2021-04-14T16:16:11+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2021-04-14T16:16:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0c4c43632556a5ea5ef2267efeb17b332b861a19'/>
<id>0c4c43632556a5ea5ef2267efeb17b332b861a19</id>
<content type='text'>
"occured" -&gt;  "occurred"</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"occured" -&gt;  "occurred"</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41282: (PEP 632) Load install schemes from sysconfig (GH-24549)</title>
<updated>2021-04-14T15:12:34+00:00</updated>
<author>
<name>Lumír 'Frenzy' Balhar</name>
<email>frenzy.madness@gmail.com</email>
</author>
<published>2021-04-14T15:12:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=341e8a939aca6e9f59ffb0e6daee5888933694ed'/>
<id>341e8a939aca6e9f59ffb0e6daee5888933694ed</id>
<content type='text'>
With this patch, `distutils.command.install.INSTALL_SCHEMES` are loaded from
`sysconfig._INSTALL_SCHEMES`.

The distutils module is deprecated and will be removed in 3.12 (PEP 632).
This change makes the `sysconfig._INSTALL_SCHEMES` the single point of truth
for install schemes while keeping `distutils.command.install.INSTALL_SCHEMES`
exactly the same. If we, during the transition to the sysconfig, change
something, this makes sure that it also propagates to distutils until the
module gets removed.

Moreover, as discussed [on Discourse], Linux distros need to patch
distutils/sysconfig to make sure the packages will land in proper locations.
This patch makes it easier because it leaves only one location where install
schemes are defined which is much easier to patch/adjust.

[on Discourse]: https://discuss.python.org/t/pep-632-deprecate-distutils-module/5134

The implementation is slightly different than the plan but I think it's the
easiest way how to do it and it also makes the downstream patch simple,
flexible and easy to maintain.

It's also necessary to implement this before setuptools starts bundling
the distutils module so the default install schemes stay in the standard library.

The removed code from sysconfig does not seem to have any negative effect
because, honestly, it seems that nothing actually uses the install schemes
from sysconfig at all. There were many big changes in these modules where
they were trying to include packaging in stdlib and then reverted that.
Also, the test of distutils install command does not count with the different
locations which is good evidence that the reason to have this piece of code
is no longer valid.


https://bugs.python.org/issue41282
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this patch, `distutils.command.install.INSTALL_SCHEMES` are loaded from
`sysconfig._INSTALL_SCHEMES`.

The distutils module is deprecated and will be removed in 3.12 (PEP 632).
This change makes the `sysconfig._INSTALL_SCHEMES` the single point of truth
for install schemes while keeping `distutils.command.install.INSTALL_SCHEMES`
exactly the same. If we, during the transition to the sysconfig, change
something, this makes sure that it also propagates to distutils until the
module gets removed.

Moreover, as discussed [on Discourse], Linux distros need to patch
distutils/sysconfig to make sure the packages will land in proper locations.
This patch makes it easier because it leaves only one location where install
schemes are defined which is much easier to patch/adjust.

[on Discourse]: https://discuss.python.org/t/pep-632-deprecate-distutils-module/5134

The implementation is slightly different than the plan but I think it's the
easiest way how to do it and it also makes the downstream patch simple,
flexible and easy to maintain.

It's also necessary to implement this before setuptools starts bundling
the distutils module so the default install schemes stay in the standard library.

The removed code from sysconfig does not seem to have any negative effect
because, honestly, it seems that nothing actually uses the install schemes
from sysconfig at all. There were many big changes in these modules where
they were trying to include packaging in stdlib and then reverted that.
Also, the test of distutils install command does not count with the different
locations which is good evidence that the reason to have this piece of code
is no longer valid.


https://bugs.python.org/issue41282
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43505: Explicitly initialize and shutdown sqlite3 (GH-25404)</title>
<updated>2021-04-14T14:50:16+00:00</updated>
<author>
<name>Erlend Egeberg Aasland</name>
<email>erlend.aasland@innova.no</email>
</author>
<published>2021-04-14T14:50:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=def919342facf7f53a3a5f0e9f4b1889d323956d'/>
<id>def919342facf7f53a3a5f0e9f4b1889d323956d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41282: setup.py ignores distutils DeprecationWarning (GH-25405)</title>
<updated>2021-04-14T14:38:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-04-14T14:38:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d9ba9dee7f267a603394b8d63a7697b08efdf1cb'/>
<id>d9ba9dee7f267a603394b8d63a7697b08efdf1cb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43795: Sort PC/python3dll.c (GH-25312)</title>
<updated>2021-04-14T14:38:30+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>encukou@gmail.com</email>
</author>
<published>2021-04-14T14:38:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=92eebf6dd20c541ca5883d010a575fb6ea4a245c'/>
<id>92eebf6dd20c541ca5883d010a575fb6ea4a245c</id>
<content type='text'>
Each section is sorted to reduce diffs (review effort) when the file becomes generated.
Sort is done with key=str.lower to preserve most of the original order (underscored items first).

https://bugs.python.org/issue43795</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each section is sorted to reduce diffs (review effort) when the file becomes generated.
Sort is done with key=str.lower to preserve most of the original order (underscored items first).

https://bugs.python.org/issue43795</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38530: Offer suggestions on NameError (GH-25397)</title>
<updated>2021-04-14T14:10:33+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2021-04-14T14:10:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5bf8bf2267cd109970b2d946d43b2e9f71379ba2'/>
<id>5bf8bf2267cd109970b2d946d43b2e9f71379ba2</id>
<content type='text'>
When printing NameError raised by the interpreter, PyErr_Display
will offer suggestions of simmilar variable names in the function that the exception
was raised from:

    &gt;&gt;&gt; schwarzschild_black_hole = None
    &gt;&gt;&gt; schwarschild_black_hole
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    NameError: name 'schwarschild_black_hole' is not defined. Did you mean: schwarzschild_black_hole?</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When printing NameError raised by the interpreter, PyErr_Display
will offer suggestions of simmilar variable names in the function that the exception
was raised from:

    &gt;&gt;&gt; schwarzschild_black_hole = None
    &gt;&gt;&gt; schwarschild_black_hole
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    NameError: name 'schwarschild_black_hole' is not defined. Did you mean: schwarzschild_black_hole?</pre>
</div>
</content>
</entry>
</feed>
