<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/importlib/_bootstrap.py, branch fix-misc-acks</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-32303 - Consistency fixes for namespace loaders (GH-5481) (#5503)</title>
<updated>2018-02-03T00:49:25+00:00</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2018-02-03T00:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a23d30f64bd9c5655cfae7f359d4279c47f6cab3'/>
<id>a23d30f64bd9c5655cfae7f359d4279c47f6cab3</id>
<content type='text'>
* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.

https://bugs.python.org/issue32303
https://bugs.python.org/issue32305
(cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2)

Co-authored-by: Barry Warsaw &lt;barry@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.

https://bugs.python.org/issue32303
https://bugs.python.org/issue32305
(cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2)

Co-authored-by: Barry Warsaw &lt;barry@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118)</title>
<updated>2017-10-26T07:41:59+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-10-26T07:41:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=41c56940c6edf3ea169332a6b039b6c8796f0475'/>
<id>41c56940c6edf3ea169332a6b039b6c8796f0475</id>
<content type='text'>
BytesWarning no longer emitted when the fromlist argument of
__import__() or the __all__ attribute of the module contain bytes
instances.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BytesWarning no longer emitted when the fromlist argument of
__import__() or the __all__ attribute of the module contain bytes
instances.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31642: Restore blocking "from" import by setting None in sys.modules. (#3834)</title>
<updated>2017-10-08T07:44:10+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-10-08T07:44:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f07e2b64df6304a36fb5e29397d3c77a7ba17704'/>
<id>f07e2b64df6304a36fb5e29397d3c77a7ba17704</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Trivial cleanups following bpo-31370 (#3649)</title>
<updated>2017-09-18T21:50:44+00:00</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-09-18T21:50:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=88c60c9668f0aa732693517a60b851cc1dfce0cb'/>
<id>88c60c9668f0aa732693517a60b851cc1dfce0cb</id>
<content type='text'>
* Trivial cleanups following bpo-31370

* Also cleanup the "importlib._bootstrap_external" module
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Trivial cleanups following bpo-31370

* Also cleanup the "importlib._bootstrap_external" module
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033)</title>
<updated>2017-08-09T11:29:12+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-08-09T11:29:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a'/>
<id>9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30891: Fix again importlib _find_and_load() (#2665)</title>
<updated>2017-07-21T11:00:46+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-07-21T11:00:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e72b1359f81d1dd42bd8a5c5cc2b3928b74f8023'/>
<id>e72b1359f81d1dd42bd8a5c5cc2b3928b74f8023</id>
<content type='text'>
Use sys.modules.get() in the "with _ModuleLockManager(name):" block
to protect the dictionary key with the module lock and use an atomic
get to prevent race condition.

Remove also _bootstrap._POPULATE since it was unused
(_bootstrap_external now has its own _POPULATE object), add a new
_SENTINEL object instead.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use sys.modules.get() in the "with _ModuleLockManager(name):" block
to protect the dictionary key with the module lock and use an atomic
get to prevent race condition.

Remove also _bootstrap._POPULATE since it was unused
(_bootstrap_external now has its own _POPULATE object), add a new
_SENTINEL object instead.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30876: Relative import from unloaded package now reimports the package (#2639)</title>
<updated>2017-07-12T03:50:03+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-07-12T03:50:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8a9cd20edca7d01b68292036029ae3735ce65edd'/>
<id>8a9cd20edca7d01b68292036029ae3735ce65edd</id>
<content type='text'>
instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30891: Fix importlib _find_and_load() race condition (#2646)</title>
<updated>2017-07-10T20:52:32+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-07-10T20:52:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4f9a446f3fb42f800e73cd9414dd1eccb3ca4fa7'/>
<id>4f9a446f3fb42f800e73cd9414dd1eccb3ca4fa7</id>
<content type='text'>
* Rewrite importlib _get_module_lock(): it is now responsible to hold
  the imp lock directly.
* _find_and_load() now holds the module lock to check if name is in
  sys.modules to prevent a race condition</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rewrite importlib _get_module_lock(): it is now responsible to hold
  the imp lock directly.
* _find_and_load() now holds the module lock to check if name is in
  sys.modules to prevent a race condition</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30814: Fixed a race condition when import a submodule from a package. (#2580)</title>
<updated>2017-07-06T05:09:03+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-07-06T05:09:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b4baacee1adc06edbe30ac7574d17a8cd168e2e0'/>
<id>b4baacee1adc06edbe30ac7574d17a8cd168e2e0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-22257: Small changes for PEP 432. (#1728)</title>
<updated>2017-05-23T04:36:03+00:00</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2017-05-23T04:36:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6b4be195cd8868b76eb6fbe166acc39beee8ce36'/>
<id>6b4be195cd8868b76eb6fbe166acc39beee8ce36</id>
<content type='text'>
PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.</pre>
</div>
</content>
</entry>
</feed>
