[issue34056] checked hash-based pyc files not working with imp module

2018-07-05 Thread Patrick McCarty
Patrick McCarty added the comment: Thanks for the response. I would like to avoid using imp, but I work on a distro team that ships many packages that still use the module. We wanted to start using checked-hash invalidation right away after upgrading to 3.7.0, but some of our release tests

[issue34056] checked hash-based pyc files not working with imp module

2018-07-05 Thread Patrick McCarty
Change by Patrick McCarty : Added file: https://bugs.python.org/file47672/imp-test-mod.py ___ Python tracker <https://bugs.python.org/issue34056> ___ ___ Python-bug

[issue34056] checked hash-based pyc files not working with imp module

2018-07-05 Thread Patrick McCarty
New submission from Patrick McCarty : OS: Clear Linux build 23460 Python version: 3.7.0 Description: I am seeing an uncaught exception in Python 3.7.0 when using the "imp" module to import a module that has a checked hash-based pyc file. See the attached source files. Steps to re