<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_imp.py, branch 3.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_imp.py?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_imp.py?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-07-07T04:00:45Z</updated>
<entry>
<title>closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)</title>
<updated>2018-07-07T04:00:45Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-07T04:00:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7bd6f0e5500f778e940374237b94651f60ae1990'/>
<id>urn:sha1:7bd6f0e5500f778e940374237b94651f60ae1990</id>
<content type='text'>
* Always return bytes from _HackedGetData.get_data().

Ensure the imp.load_source shim always returns bytes by reopening the file in
binary mode if needed. Hash-based pycs have to receive the source code in bytes.

It's tempting to change imp.get_suffixes() to always return 'rb' as a mode, but
that breaks some stdlib tests and likely 3rdparty code, too.
(cherry picked from commit b0274f2cddd36b49fe5080efbe160277ef546471)

Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;</content>
</entry>
<entry>
<title>closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575)</title>
<updated>2017-12-09T18:26:52Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2017-12-09T18:26:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=42aa93b8ff2f7879282b06efc73a31ec7785e602'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Fix miscellaneous typos (#4275)</title>
<updated>2017-11-05T13:37:50Z</updated>
<author>
<name>luzpaz</name>
<email>luzpaz@users.noreply.github.com</email>
</author>
<published>2017-11-05T13:37:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a5293b4ff2c1b5446947b4986f98ecf5d52432d4'/>
<id>urn:sha1:a5293b4ff2c1b5446947b4986f98ecf5d52432d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31676: Fix test_imp.test_load_source() side effect (#3871)</title>
<updated>2017-10-13T20:47:49Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-13T20:47:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a505ecdc5013cd8f930aacc1ec4fb2afa62d3853'/>
<id>urn:sha1:a505ecdc5013cd8f930aacc1ec4fb2afa62d3853</id>
<content type='text'>
test_load_source() now replaces the current __name__ module with a
temporary module to prevent side effects.</content>
</entry>
<entry>
<title>bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name is not a string. (#3257)</title>
<updated>2017-09-19T11:39:47Z</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-09-19T11:39:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9974e1bcf3d0cec9b38b39b39b7ec8a1ebd9ef54'/>
<id>urn:sha1:9974e1bcf3d0cec9b38b39b39b7ec8a1ebd9ef54</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31370: Remove support for threads-less builds (#3385)</title>
<updated>2017-09-07T16:56:24Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-09-07T16:56:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344'/>
<id>urn:sha1:a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344</id>
<content type='text'>
* Remove Setup.config
* Always define WITH_THREAD for compatibility.

</content>
</entry>
<entry>
<title>[security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302)</title>
<updated>2017-06-28T05:30:06Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-28T05:30:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f7eae0adfcd4c50034281b2c69f461b43b68db84'/>
<id>urn:sha1:f7eae0adfcd4c50034281b2c69f461b43b68db84</id>
<content type='text'>
Based on patch by Victor Stinner.

Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters.
</content>
</entry>
<entry>
<title>Remove more unused imports in tests.</title>
<updated>2016-04-24T21:05:30Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-04-24T21:05:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a6f26c1d3495670c02c2ceb1e38ada0d468579f7'/>
<id>urn:sha1:a6f26c1d3495670c02c2ceb1e38ada0d468579f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #25487: Fix tests not updated when the imp module moved to a</title>
<updated>2015-10-30T21:41:06Z</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2015-10-30T21:41:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=213b4056a64a670587419c8a15a724faeb789221'/>
<id>urn:sha1:213b4056a64a670587419c8a15a724faeb789221</id>
<content type='text'>
DeprecationWarning.

Thanks to Martin Panter for finding the tests.
</content>
</entry>
<entry>
<title>Close #24748: Restore imp.load_dynamic compatibility</title>
<updated>2015-09-05T11:05:05Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2015-09-05T11:05:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9d3c61c86a20678d604c96a68bbf4a966877f0b9'/>
<id>urn:sha1:9d3c61c86a20678d604c96a68bbf4a966877f0b9</id>
<content type='text'>
To resolve a compatibility problem found with py2exe and
pywin32, imp.load_dynamic() once again ignores previously loaded modules
to support Python modules replacing themselves with extension modules.

Patch by Petr Viktorin.
</content>
</entry>
</feed>
