<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/</link>
    <language>en-us</language>

    <title>cpython-lru_cache-weakref: Lib/importlib/test/source/test_path_hook.py history</title>
    <description>Lib/importlib/test/source/test_path_hook.py revision history</description>
    <item>
    <title>Issue #13959: Deprecate imp.get_suffixes() for new attributes on</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/b81ddaf0db47/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Issue #13959: Deprecate imp.get_suffixes() for new attributes on<br/>
importlib.machinery that provide the suffix details for import.<br/>
The attributes were not put on imp so as to compartmentalize<br/>
everything importlib needs for setting up imports in<br/>
importlib.machinery.<br/>
<br/>
This also led to an indirect deprecation of inspect.getmoduleinfo() as<br/>
it directly returned imp.get_suffix's returned tuple which no longer<br/>
makes sense.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#114;&#101;&#116;&#116;&#64;&#112;&#121;&#116;&#104;&#111;&#110;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Fri, 11 May 2012 12:58:42 -0400</pubDate>
</item>
<item>
    <title>Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/257cbd2fac38/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.<br/>
<br/>
This introduces a new function, imp.extension_suffixes(), which is<br/>
currently undocumented. That is forthcoming once issue #14657 is<br/>
resolved and how to expose file suffixes is decided.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#114;&#101;&#116;&#116;&#64;&#112;&#121;&#116;&#104;&#111;&#110;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Fri, 04 May 2012 15:20:40 -0400</pubDate>
</item>
<item>
    <title>Issue #14605: Expose importlib.abc.FileLoader and</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/1da623513b26/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Issue #14605: Expose importlib.abc.FileLoader and<br/>
importlib.machinery.(FileFinder, SourceFileLoader,<br/>
_SourcelessFileLoader, ExtensionFileLoader).<br/>
<br/>
This exposes all of importlib's mechanisms that will become public on<br/>
the sys module.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#114;&#101;&#116;&#116;&#64;&#112;&#121;&#116;&#104;&#111;&#110;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Sun, 22 Apr 2012 19:58:33 -0400</pubDate>
</item>
<item>
    <title>Issue #2377: Make importlib the implementation of __import__().</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/2dd046be2c88/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Issue #2377: Make importlib the implementation of __import__().<br/>
<br/>
importlib._bootstrap is now frozen into Python/importlib.h and stored<br/>
as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen<br/>
code along with sys and imp and then uses _frozen_importlib._install()<br/>
to set builtins.__import__() w/ _frozen_importlib.__import__().]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#114;&#101;&#116;&#116;&#64;&#112;&#121;&#116;&#104;&#111;&#110;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Sat, 14 Apr 2012 14:10:13 -0400</pubDate>
</item>
<item>
    <title>Make importlib.abc.SourceLoader the primary mechanism for importlib.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/34f015bca54e/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Make importlib.abc.SourceLoader the primary mechanism for importlib.<br/>
<br/>
This required moving the class from importlib/abc.py into<br/>
importlib/_bootstrap.py and jiggering some code to work better with the class.<br/>
This included changing how the file finder worked to better meet import<br/>
semantics. This also led to fixing importlib to handle the empty string from<br/>
sys.path as import currently does (and making me wish we didn't support that<br/>
instead just required people to insert '.' instead to represent cwd).<br/>
<br/>
It also required making the new set_data abstractmethod create<br/>
any needed subdirectories implicitly thanks to __pycache__ (it was either this<br/>
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir<br/>
method or have set_data with no data arg mean to create a directory).<br/>
<br/>
Lastly, as an optimization the file loaders cache the file path where the<br/>
finder found something to use for loading (this is thanks to having a<br/>
sourceless loader separate from the source loader to simplify the code and<br/>
cut out stat calls).<br/>
Unfortunately test_runpy assumed a loader would always work for a module, even<br/>
if you changed from underneath it what it was expected to work with. By simply<br/>
dropping the previous loader in test_runpy so the proper loader can be returned<br/>
by the finder fixed the failure.<br/>
<br/>
At this point importlib deviates from import on two points:<br/>
<br/>
1. The exception raised when trying to import a file is different (import does<br/>
an explicit file check to print a special message, importlib just says the path<br/>
cannot be imported as if it was just some module name).<br/>
<br/>
2. the co_filename on a code object is not being set to where bytecode was<br/>
actually loaded from instead of where the marshalled code object originally<br/>
came from (a solution for this has already been agreed upon on python-dev but has<br/>
not been implemented yet; issue8611).]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 03 Jul 2010 22:18:47 +0000</pubDate>
</item>
<item>
    <title>Make importlib.abc.SourceLoader the primary mechanism for importlib.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/34d827249ce0/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Make importlib.abc.SourceLoader the primary mechanism for importlib.<br/>
<br/>
This required moving the class from importlib/abc.py into<br/>
importlib/_bootstrap.py and jiggering some code to work better with the class.<br/>
This included changing how the file finder worked to better meet import<br/>
semantics. This also led to fixing importlib to handle the empty string from<br/>
sys.path as import currently does (and making me wish we didn't support that<br/>
instead just required people to insert '.' instead to represent cwd).<br/>
<br/>
It also required making the new set_data abstractmethod create<br/>
any needed subdirectories implicitly thanks to __pycache__ (it was either this<br/>
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir<br/>
method or have set_data with no data arg mean to create a directory).<br/>
<br/>
Lastly, as an optimization the file loaders cache the file path where the<br/>
finder found something to use for loading (this is thanks to having a<br/>
sourceless loader separate from the source loader to simplify the code and<br/>
cut out stat calls).<br/>
Unfortunately test_runpy assumed a loader would always work for a module, even<br/>
if you changed from underneath it what it was expected to work with. By simply<br/>
dropping the previous loader in test_runpy so the proper loader can be returned<br/>
by the finder fixed the failure.<br/>
<br/>
At this point importlib deviates from import on two points:<br/>
<br/>
1. The exception raised when trying to import a file is different (import does<br/>
an explicit file check to print a special message, importlib just says the path<br/>
cannot be imported as if it was just some module name).<br/>
<br/>
2. the co_filename on a code object is not being set to where bytecode was<br/>
actually loaded from instead of where the marshalled code object originally<br/>
came from (a solution for this has already been agreed upon on python-dev but has<br/>
not been implemented yet; issue8611).]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 03 Jul 2010 21:48:25 +0000</pubDate>
</item>
<item>
    <title>Merged revisions 73715 via svnmerge from</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/0bb232078b8c/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Merged revisions 73715 via svnmerge from<br/>
svn+ssh://svn.python.org/python/branches/py3k<br/>
<br/>
........<br/>
  r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line<br/>
<br/>
  convert old fail* assertions to assert*<br/>
........]]></description>
    <author>&#71;&#101;&#111;&#114;&#103;&#32;&#66;&#114;&#97;&#110;&#100;&#108;&#32;&#60;&#103;&#101;&#111;&#114;&#103;&#64;&#112;&#121;&#116;&#104;&#111;&#110;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Thu, 13 Aug 2009 08:51:18 +0000</pubDate>
</item>
<item>
    <title>Finish properly hiding importlib implementation code.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/04a5b6438526/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Finish properly hiding importlib implementation code.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 12 Mar 2009 22:47:53 +0000</pubDate>
</item>
<item>
    <title>Do some cleanup in importlib:</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/a1faff74ff89/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Do some cleanup in importlib:<br/>
<br/>
+ Ditch using arguments to super().<br/>
+ Ditch subclassing from object directly.<br/>
+ Move directory check out of chaining path hook to file path hook/finder.<br/>
+ Rename some classes to better reflect they are finders, not importers.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 21 Feb 2009 03:15:37 +0000</pubDate>
</item>
<item>
    <title>Rename importlib.test.support to importlib.test.util.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/d85ef26efd10/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Rename importlib.test.support to importlib.test.util.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 01 Feb 2009 04:00:05 +0000</pubDate>
</item>
<item>
    <title>Split out support code that is specific to source tests out of</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/4b3246c83e3f/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Split out support code that is specific to source tests out of<br/>
importlib.test.support to importlib.test.source.util.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 01 Feb 2009 03:08:31 +0000</pubDate>
</item>
<item>
    <title>Add initial implementation of importlib. See the NOTES files for what is</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/aac51b70c74c/Lib/importlib/test/source/test_path_hook.py</link>
    <description><![CDATA[Add initial implementation of importlib. See the NOTES files for what is<br/>
planned for the package.<br/>
<br/>
There are no docs yet, but they are coming once the API for the first new<br/>
function, importlib.import_module() is finalized.]]></description>
    <author>&#66;&#114;&#101;&#116;&#116;&#32;&#67;&#97;&#110;&#110;&#111;&#110;&#32;&#60;&#98;&#99;&#97;&#110;&#110;&#111;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 18 Jan 2009 00:24:28 +0000</pubDate>
</item>

  </channel>
</rss>
