<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/importlib_zipimport.h, branch enum-lost-fixes</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>[3.10] bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) (#28438)</title>
<updated>2021-09-18T00:46:22+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2021-09-18T00:46:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e1bdecb6dc7ac33256d5fa875d45634512d2a90e'/>
<id>e1bdecb6dc7ac33256d5fa875d45634512d2a90e</id>
<content type='text'>
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
(cherry picked from commit 209b7035f714dcc41df054b0b023e0b955d7e1a2)

Co-authored-by: Brett Cannon &lt;brett@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
(cherry picked from commit 209b7035f714dcc41df054b0b023e0b955d7e1a2)

Co-authored-by: Brett Cannon &lt;brett@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] bpo-45056: Remove trailing unused constants from co_consts (GH-28109) (GH-28125)</title>
<updated>2021-09-08T16:25:09+00:00</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2021-09-08T16:25:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d41abe8970453716dbc6a3a898ac8fb01cbf6c6f'/>
<id>d41abe8970453716dbc6a3a898ac8fb01cbf6c6f</id>
<content type='text'>
(cherry picked from commit 55c4a92fc1abfe388335071f1d64b3addfa5793f)

Co-authored-by: Inada Naoki &lt;songofacandy@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 55c4a92fc1abfe388335071f1d64b3addfa5793f)

Co-authored-by: Inada Naoki &lt;songofacandy@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-44840: Compiler: Move duplication of exit blocks with no line numbers to after CFG optimization. (GH-27656) (#27673)</title>
<updated>2021-08-09T09:54:48+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-08-09T09:54:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=762ef85f441cdec002cb4e812b9e77ae5033e571'/>
<id>762ef85f441cdec002cb4e812b9e77ae5033e571</id>
<content type='text'>
(cherry picked from commit b854557b49083d8625a433eb36aacb0c87d67c52)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit b854557b49083d8625a433eb36aacb0c87d67c52)</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43933:  Set frame.f_lineno during call to __exit__ (GH-25719)</title>
<updated>2021-04-30T13:32:47+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-04-30T13:32:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5979e81a212949c62c2490167c9137d233d7de64'/>
<id>5979e81a212949c62c2490167c9137d233d7de64</id>
<content type='text'>
* Set line number of __exit__ call in a with statement to be that of the with keyword.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Set line number of __exit__ call in a with statement to be that of the with keyword.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42739: Don't use sentinels to mark end of line table. (GH-25657)</title>
<updated>2021-04-29T12:12:51+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-04-29T12:12:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c76da79b37d2bcbe575cc927ba0a9b7a9ce465db'/>
<id>c76da79b37d2bcbe575cc927ba0a9b7a9ce465db</id>
<content type='text'>
* Add length parameter to PyLineTable_InitAddressRange and doen't use sentinel values at end of table. Makes the line number table more robust.

* Update PyCodeAddressRange to match PEP 626.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add length parameter to PyLineTable_InitAddressRange and doen't use sentinel values at end of table. Makes the line number table more robust.

* Update PyCodeAddressRange to match PEP 626.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41323: compiler: Reuse tuple in constant tuple folding (GH-25419)</title>
<updated>2021-04-16T05:01:04+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-04-16T05:01:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8a232c7b17a2e41ae14d8bb7937ddfea69301dce'/>
<id>8a232c7b17a2e41ae14d8bb7937ddfea69301dce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42135: Deprecate implementations of find_module() and find_loader() (GH-25169)</title>
<updated>2021-04-06T15:56:57+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2021-04-06T15:56:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=57c6cb5100d19a0e0218c77d887c3c239c9ce435'/>
<id>57c6cb5100d19a0e0218c77d887c3c239c9ce435</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069)</title>
<updated>2021-04-01T15:00:31+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-04-01T15:00:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fcb55c0037baab6f98f91ee38ce84b6f874f034a'/>
<id>fcb55c0037baab6f98f91ee38ce84b6f874f034a</id>
<content type='text'>
* Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps.

* Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps.

* Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159)</title>
<updated>2021-03-08T20:06:02+00:00</updated>
<author>
<name>Desmond Cheong</name>
<email>desmondcheongzx@gmail.com</email>
</author>
<published>2021-03-08T20:06:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3abf6f010243a91bf57cbf357dac33193f7b8407'/>
<id>3abf6f010243a91bf57cbf357dac33193f7b8407</id>
<content type='text'>
Added an invalidate_caches() method to the zipimport.zipimporter class based on the implementation of importlib.FileFinder.invalidate_caches(). This was done by adding a get_files() method and an _archive_mtime attribute to zipimport.zipimporter to check for updates or cache invalidation whenever the cache of files and toc entry information in the zipimporter is accessed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added an invalidate_caches() method to the zipimport.zipimporter class based on the implementation of importlib.FileFinder.invalidate_caches(). This was done by adding a get_files() method and an _archive_mtime attribute to zipimport.zipimporter to check for updates or cache invalidation whenever the cache of files and toc entry information in the zipimporter is accessed.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42908: Mark cleanup code at end of try-except and with artificial (#24202)</title>
<updated>2021-01-13T12:05:43+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2021-01-13T12:05:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3bd6035b6baf1a7d51b7cc2c6bb2c81886236b67'/>
<id>3bd6035b6baf1a7d51b7cc2c6bb2c81886236b67</id>
<content type='text'>
* Mark bytecodes at end of try-except as artificial.

* Make sure that the CFG is consistent throughout optimiization. 

* Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers.

* Update importlib</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Mark bytecodes at end of try-except as artificial.

* Make sure that the CFG is consistent throughout optimiization. 

* Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers.

* Update importlib</pre>
</div>
</content>
</entry>
</feed>
