<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/importlib/test/source, branch v3.2.6</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/importlib/test/source?h=v3.2.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/importlib/test/source?h=v3.2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2013-03-16T17:48:51Z</updated>
<entry>
<title>#11420: make test suite pass with -B/DONTWRITEBYTECODE set.  Initial patch by Thomas Wouters.</title>
<updated>2013-03-16T17:48:51Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2013-03-16T17:48:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c28f6fa505f717698038b41492265129c77dfc0e'/>
<id>urn:sha1:c28f6fa505f717698038b41492265129c77dfc0e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port import fixes from 2.7.</title>
<updated>2012-01-25T17:01:45Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2012-01-25T17:01:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=33d15f7c85c1700465bc89f896f2bafc58d2b2b5'/>
<id>urn:sha1:33d15f7c85c1700465bc89f896f2bafc58d2b2b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port remaining test fixes, and fix test_importlib too.</title>
<updated>2012-01-25T02:00:57Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2012-01-25T02:00:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd21f68963c2b17324b6018dbbf1b32b6e88f2c2'/>
<id>urn:sha1:dd21f68963c2b17324b6018dbbf1b32b6e88f2c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.</title>
<updated>2012-01-24T16:44:06Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2012-01-24T16:44:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2be60afb7e0753c1bd5c297960cf8686a1ec7e1e'/>
<id>urn:sha1:2be60afb7e0753c1bd5c297960cf8686a1ec7e1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix no-op tests in importlib.</title>
<updated>2011-12-30T20:25:15Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2011-12-30T20:25:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7c9907e565ae43f910acc5ebd1dae9fc0487de9c'/>
<id>urn:sha1:7c9907e565ae43f910acc5ebd1dae9fc0487de9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Closes #12291: Fixed bug which was found when doing  multiple loads from one stream.</title>
<updated>2011-07-02T15:42:47Z</updated>
<author>
<name>Vinay Sajip</name>
<email>vinay_sajip@yahoo.co.uk</email>
</author>
<published>2011-07-02T15:42:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5bdae3bb7c7ab9e85453698972fa5fa926f012f3'/>
<id>urn:sha1:5bdae3bb7c7ab9e85453698972fa5fa926f012f3</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>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>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>
