[Python-Dev] PEP 552: deterministic pycs

Antoine Pitrou solipsis at pitrou.net
Thu Sep 7 17:00:43 EDT 2017


On Thu, 07 Sep 2017 13:39:21 -0700
Benjamin Peterson <benjamin at python.org> wrote:
> Hello,
> I've written a short PEP about an import extension to allow pycs to be
> more deterministic by optional replacing the timestamp with a hash of
> the source file: https://www.python.org/dev/peps/pep-0552/

Why isn't https://github.com/python/cpython/pull/296 a good enough
solution to this problem?  It has a simple implementation, and requires
neither maintaining two different pyc formats nor reading the entire
source file to check whether the pyc file is up to date.

Regards

Antoine.




More information about the Python-Dev mailing list