<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_zipimport.py, branch benjamin-interp-initialize</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>closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575)</title>
<updated>2017-12-09T18:26:52+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2017-12-09T18:26:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=42aa93b8ff2f7879282b06efc73a31ec7785e602'/>
<id>42aa93b8ff2f7879282b06efc73a31ec7785e602</id>
<content type='text'>
Python now supports checking bytecode cache up-to-dateness with a hash of the
source contents rather than volatile source metadata. See the PEP for details.

While a fairly straightforward idea, quite a lot of code had to be modified due
to the pervasiveness of pyc implementation details in the codebase. Changes in
this commit include:

- The core changes to importlib to understand how to read, validate, and
  regenerate hash-based pycs.

- Support for generating hash-based pycs in py_compile and compileall.

- Modifications to our siphash implementation to support passing a custom
  key. We then expose it to importlib through _imp.

- Updates to all places in the interpreter, standard library, and tests that
  manually generate or parse pyc files to grok the new format.

- Support in the interpreter command line code for long options like
  --check-hash-based-pycs.

- Tests and documentation for all of the above.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python now supports checking bytecode cache up-to-dateness with a hash of the
source contents rather than volatile source metadata. See the PEP for details.

While a fairly straightforward idea, quite a lot of code had to be modified due
to the pervasiveness of pyc implementation details in the codebase. Changes in
this commit include:

- The core changes to importlib to understand how to read, validate, and
  regenerate hash-based pycs.

- Support for generating hash-based pycs in py_compile and compileall.

- Modifications to our siphash implementation to support passing a custom
  key. We then expose it to importlib through _imp.

- Updates to all places in the interpreter, standard library, and tests that
  manually generate or parse pyc files to grok the new format.

- Support in the interpreter command line code for long options like
  --check-hash-based-pycs.

- Tests and documentation for all of the above.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31781: Prevent crashes when calling methods of an uninitialized zipimport.zipimporter object (GH-3986)</title>
<updated>2017-10-20T20:42:35+00:00</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-10-20T20:42:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=db60a5bfa5d5f7a6f1538cc1fe76f0fda57b524e'/>
<id>db60a5bfa5d5f7a6f1538cc1fe76f0fda57b524e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a bad zlib.decompress() (GH-3784)</title>
<updated>2017-09-29T18:34:31+00:00</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-09-29T18:34:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=01c6a8859ef2ff5545a87cf537573bd342c848bf'/>
<id>01c6a8859ef2ff5545a87cf537573bd342c848bf</id>
<content type='text'>
While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.

Thanks to Oren Milman for the patch.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.

Thanks to Oren Milman for the patch.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31291: Fixed an assertion failure in zipimport.zipimporter.get_data() (#3226)</title>
<updated>2017-08-29T17:40:15+00:00</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-08-29T17:40:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=631fdee6e61b4ba8ce800f827fecdd536bfb04f3'/>
<id>631fdee6e61b4ba8ce800f827fecdd536bfb04f3</id>
<content type='text'>
if pathname.replace('/', '\\') returns non-string.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
if pathname.replace('/', '\\') returns non-string.</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #28131: Merge from 3.5</title>
<updated>2016-09-14T05:10:45+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-09-14T05:10:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8ee9edbf4514d8f20ca4bc9cddb5065a4fc24716'/>
<id>8ee9edbf4514d8f20ca4bc9cddb5065a4fc24716</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #28131: Fix a regression in zipimport's compile_source()</title>
<updated>2016-09-14T05:09:48+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-09-14T05:09:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=4aa74c429cabef6aaf91b2b0d4c2163778b1249d'/>
<id>4aa74c429cabef6aaf91b2b0d4c2163778b1249d</id>
<content type='text'>
zipimport should use the same optimization level as the interpreter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
zipimport should use the same optimization level as the interpreter.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)</title>
<updated>2016-09-10T00:33:37+00:00</updated>
<author>
<name>Steve Dower</name>
<email>steve.dower@microsoft.com</email>
</author>
<published>2016-09-10T00:33:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ff70fc220653d8999d69bd3f3b986a07afc81b64'/>
<id>ff70fc220653d8999d69bd3f3b986a07afc81b64</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)</title>
<updated>2016-09-10T00:27:33+00:00</updated>
<author>
<name>Steve Dower</name>
<email>steve.dower@microsoft.com</email>
</author>
<published>2016-09-10T00:27:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8dcc48ee3b6447cd63038e63ee11de36f6d85a68'/>
<id>8dcc48ee3b6447cd63038e63ee11de36f6d85a68</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26754: Undocumented support of general bytes-like objects</title>
<updated>2016-08-06T20:29:29+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-08-06T20:29:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=febc3320563bf597e186ebce75abdac2926ceeb6'/>
<id>febc3320563bf597e186ebce75abdac2926ceeb6</id>
<content type='text'>
as path in compile() and similar functions is now deprecated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as path in compile() and similar functions is now deprecated.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26754: PyUnicode_FSDecoder() accepted a filename argument encoded as</title>
<updated>2016-06-18T10:56:16+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-06-18T10:56:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f95de0e8cc259b1ccb6b604a0ed74bb7894f4b2b'/>
<id>f95de0e8cc259b1ccb6b604a0ed74bb7894f4b2b</id>
<content type='text'>
an iterable of integers. Now only strings and byte-like objects are accepted.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
an iterable of integers. Now only strings and byte-like objects are accepted.
</pre>
</div>
</content>
</entry>
</feed>
