Skip to content

bpo-34990: Change pyc headers to use 64-bit timestamps#19651

Closed
ammaraskar wants to merge 1 commit intopython:masterfrom
ammaraskar:master
Closed

bpo-34990: Change pyc headers to use 64-bit timestamps#19651
ammaraskar wants to merge 1 commit intopython:masterfrom
ammaraskar:master

Conversation

@ammaraskar
Copy link
Member

@ammaraskar ammaraskar commented Apr 22, 2020

This is a more permanent alternative to the compileall issue. As Benjamin originally suggested here in the PEP 552 pull request this changes both the timestamp and size to use 64 bit integers. In the hashed pyc files, we end up padding out the space that would be used with zeroes.

It is possible that I missed a few tests since the larger 8-byte field can masquerade as the two 4-byte fields easily.

As a bonus this also lets us support large source files, though I question if anyone is really compiling larger than 2/4GB python files.

https://bugs.python.org/issue34990

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants