<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/importlib/test, branch v3.2b1</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/importlib/test?h=v3.2b1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/importlib/test?h=v3.2b1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2010-11-20T19:04:17Z</updated>
<entry>
<title>#9424: Replace deprecated assert* methods in the Python test suite.</title>
<updated>2010-11-20T19:04:17Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2010-11-20T19:04:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b3aedd48621ed9d33b5f42f946b256bce4a50673'/>
<id>urn:sha1:b3aedd48621ed9d33b5f42f946b256bce4a50673</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make sure that no __pycache__ directory is needlessly left behind when testing</title>
<updated>2010-08-22T22:11:06Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-08-22T22:11:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=186335bd5cbe839348922aef3661e17247def27b'/>
<id>urn:sha1:186335bd5cbe839348922aef3661e17247def27b</id>
<content type='text'>
imports with an empty string in sys.path.
</content>
</entry>
<entry>
<title>Add importlib benchmarks which try to be "realistic" by importing the decimal</title>
<updated>2010-07-22T07:40:56Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-22T07:40:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5db0c94072abad10c9d2df99eefd1f51eb84f2bc'/>
<id>urn:sha1:5db0c94072abad10c9d2df99eefd1f51eb84f2bc</id>
<content type='text'>
module which is the largest module in the stdlib.
</content>
</entry>
<entry>
<title>Add comma grouping to max result so it's easier to read.</title>
<updated>2010-07-16T19:26:23Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-16T19:26:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cbe1a4e28fb8dcd9fa1a17a1160ccc1c2ff9ff99'/>
<id>urn:sha1:cbe1a4e28fb8dcd9fa1a17a1160ccc1c2ff9ff99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add benchmarks for importing just source w/o writing bytecode, importing source</title>
<updated>2010-07-16T19:04:29Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-16T19:04:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b0a19eaba872c37eb2a0c84d3dcd79353250796'/>
<id>urn:sha1:3b0a19eaba872c37eb2a0c84d3dcd79353250796</id>
<content type='text'>
while writing bytecode, and importing bytecode with source existing (don't care
about sourceless imports).
</content>
</entry>
<entry>
<title>Touch up comments and code along with outputting what the unit of measure is.</title>
<updated>2010-07-15T06:24:04Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-15T06:24:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7b9bcb84112a2009b8639e1ca57a7574c7c3aa70'/>
<id>urn:sha1:7b9bcb84112a2009b8639e1ca57a7574c7c3aa70</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make importlib.abc.SourceLoader the primary mechanism for importlib.</title>
<updated>2010-07-03T22:32:41Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-03T22:32:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=418182e18b09e04fd7dd23d87f5cc81801b95299'/>
<id>urn:sha1:418182e18b09e04fd7dd23d87f5cc81801b95299</id>
<content type='text'>
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
</content>
</entry>
<entry>
<title>Make importlib.abc.SourceLoader the primary mechanism for importlib.</title>
<updated>2010-07-03T22:18:47Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-03T22:18:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d71bed3d76cc90dac24f88197bd37fdc2063330d'/>
<id>urn:sha1:d71bed3d76cc90dac24f88197bd37fdc2063330d</id>
<content type='text'>
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
</content>
</entry>
<entry>
<title>Fix a spelling mistake in a comment.</title>
<updated>2010-07-03T22:03:16Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-03T22:03:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2cf1585499e264a6b1a3583a06d025e5ed24d9c9'/>
<id>urn:sha1:2cf1585499e264a6b1a3583a06d025e5ed24d9c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make importlib.abc.SourceLoader the primary mechanism for importlib.</title>
<updated>2010-07-03T21:48:25Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-07-03T21:48:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=61b14251d3a653548f70350acb250cf23b696372'/>
<id>urn:sha1:61b14251d3a653548f70350acb250cf23b696372</id>
<content type='text'>
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
</content>
</entry>
</feed>
