<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/importdl.c, branch v3.5.0b2</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>fix importing one char extension modules (closes #24328)</title>
<updated>2015-05-29T22:10:30+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2015-05-29T22:10:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e20056c8f71a8e289016c0cbd5adb5826cd91f64'/>
<id>e20056c8f71a8e289016c0cbd5adb5826cd91f64</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #24285: fix importing extensions from packages</title>
<updated>2015-05-26T11:48:17+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2015-05-26T11:48:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0'/>
<id>55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>PEP 489: Multi-phase extension module initialization</title>
<updated>2015-05-23T12:24:10+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2015-05-23T12:24:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d5cacbb1d9c3edc02bf0ba01702e7c06da5bc318'/>
<id>d5cacbb1d9c3edc02bf0ba01702e7c06da5bc318</id>
<content type='text'>
Known limitations of the current implementation:

- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet

The leak is most visible by running:

  ./python -m test -R3:3 test_importlib

However, you can also see it by running:

  ./python -X showrefcount

Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Known limitations of the current implementation:

- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet

The leak is most visible by running:

  ./python -m test -R3:3 test_importlib

However, you can also see it by running:

  ./python -X showrefcount

Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #18408: Fix _PyImport_LoadDynamicModule(), handle PyUnicode_FromFormat() failure</title>
<updated>2013-07-17T19:53:23+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-07-17T19:53:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8e54b1c4486527075ffbb85e8c3db923aedb5e54'/>
<id>8e54b1c4486527075ffbb85e8c3db923aedb5e54</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #18426: improve exception message. Courtesy of Amaury</title>
<updated>2013-07-11T11:02:30+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2013-07-11T11:02:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7ce57d67c925be894486ff6e3a6e330a1986cdcd'/>
<id>7ce57d67c925be894486ff6e3a6e330a1986cdcd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #18426: Fix NULL pointer dereference in C extension import when</title>
<updated>2013-07-11T09:22:21+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2013-07-11T09:22:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=848ee099f5b36650fa7c23ec91110f319e40fd13'/>
<id>848ee099f5b36650fa7c23ec91110f319e40fd13</id>
<content type='text'>
PyModule_GetDef() returns an error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyModule_GetDef() returns an error.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #14599: Generalize a test for ImportError.path and add support</title>
<updated>2012-04-20T19:22:50+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2012-04-20T19:22:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f0434e647aa3e7b82a740be4a820aec951a885ac'/>
<id>f0434e647aa3e7b82a740be4a820aec951a885ac</id>
<content type='text'>
in Python/dynload_shlibs.c.

This should fix the remaining importlib test failure on Windows.
Support in AIX and HP-UX will be in a separate checkin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in Python/dynload_shlibs.c.

This should fix the remaining importlib test failure on Windows.
Support in AIX and HP-UX will be in a separate checkin.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #2377: Make importlib the implementation of __import__().</title>
<updated>2012-04-14T18:10:13+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2012-04-14T18:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fd0741555b733f66c0a35c698d0cac5e73010ae0'/>
<id>fd0741555b733f66c0a35c698d0cac5e73010ae0</id>
<content type='text'>
importlib._bootstrap is now frozen into Python/importlib.h and stored
as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen
code along with sys and imp and then uses _frozen_importlib._install()
to set builtins.__import__() w/ _frozen_importlib.__import__().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
importlib._bootstrap is now frozen into Python/importlib.h and stored
as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen
code along with sys and imp and then uses _frozen_importlib._install()
to set builtins.__import__() w/ _frozen_importlib.__import__().
</pre>
</div>
</content>
</entry>
<entry>
<title>_PyImport_LoadDynamicModule() encodes the module name explicitly to ASCII</title>
<updated>2011-05-07T10:46:05+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-05-07T10:46:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=65b7eff7c7b00bcd39ee3abfda00f9c556b24504'/>
<id>65b7eff7c7b00bcd39ee3abfda00f9c556b24504</id>
<content type='text'>
The name must be encodable to ASCII because dynamic module must have a function
called "PyInit_NAME", they are written in C, and the C language doesn't accept
non-ASCII identifiers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The name must be encodable to ASCII because dynamic module must have a function
called "PyInit_NAME", they are written in C, and the C language doesn't accept
non-ASCII identifiers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #11619: _PyImport_LoadDynamicModule() doesn't encode the path to bytes</title>
<updated>2011-04-04T21:05:53+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-04-04T21:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2d3222740bd119df048b955facd30eb48953b05f'/>
<id>2d3222740bd119df048b955facd30eb48953b05f</id>
<content type='text'>
on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
on Windows.
</pre>
</div>
</content>
</entry>
</feed>
