[issue34990] year 2038 problem in compileall.py

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34990] year 2038 problem in compileall.py

2022-02-18 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34990] year 2038 problem in compileall.py

2021-08-24 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2021-08-24 Thread Ammar Askar
Ammar Askar added the comment: New changeset 0af681b652c43f0ba90988400ecc1e7934fbfc5d by Miss Islington (bot) in branch '3.10': [3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)

[issue34990] year 2038 problem in compileall.py

2021-08-24 Thread Ammar Askar
Ammar Askar added the comment: New changeset 9d3b6b2472f7c7ef841e652825de652bc8af85d7 by Miss Islington (bot) in branch '3.9': [3.9] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)

[issue34990] year 2038 problem in compileall.py

2021-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +26379 pull_request: https://github.com/python/cpython/pull/27929 ___ Python tracker ___

[issue34990] year 2038 problem in compileall.py

2021-08-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +26378 pull_request: https://github.com/python/cpython/pull/27928 ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2021-08-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bb21e28fd08f894ceff2405544a2f257d42b1354 by Ammar Askar in branch 'main': bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708) https://github.com/python/cpython/commit/bb21e28fd08f894ceff2405544a2f257d42b1354

[issue34990] year 2038 problem in compileall.py

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to mimick importlib._bootstrap_external which uses: def _pack_uint32(x): """Convert a 32-bit integer to little-endian.""" return (int(x) & 0x).to_bytes(4, 'little') Using 64-bit timestamp (PR 19651), treat timestamp as unsigned

[issue34990] year 2038 problem in compileall.py

2020-04-24 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +19029 pull_request: https://github.com/python/cpython/pull/19708 ___ Python tracker ___

[issue34990] year 2038 problem in compileall.py

2020-04-22 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +ammar2 nosy_count: 4.0 -> 5.0 pull_requests: +18977 pull_request: https://github.com/python/cpython/pull/19651 ___ Python tracker ___

[issue34990] year 2038 problem in compileall.py

2020-01-19 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: ping. Another 19th of January passed. I'd still like to see progress on this, because this hinders my other y2038 bug discovery work. -- versions: +Python 3.5, Python 3.8, Python 3.9 ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Victor seems there was some discussion about 2038 problem in the original PR but I don't know if it's related to this. Reference : https://github.com/python/cpython/pull/4575#discussion_r153376173 Thanks --

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9256 stage: -> patch review ___ Python tracker ___ ___

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A reproducer in Python that can be added to test_compileall if needed : def test_compile_all_2038(self): with open(self.source_path, 'r') as f: os.utime(f.name, (2147558400, 2147558400)) # Jan 20, 2038 as touch

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: So we need to fix compileall.py. maybe we could add the label 'easy' to this issue. -- ___ Python tracker ___

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: Timestamp with year >= 2038 are accepted: importlib._bootstrap_external._code_to_timestamp_pyc() uses (int(x) & 0x). It's not a bug, but by design. compileall should just do the same. Sorry, I don't know if it's specified somewhere, but I know that

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: It does not need to be fixed tomorrow, but 2037 is too late, because by then there will be a lot of legacy systems around. (Un)fortunately many systems live 10+ years now -- ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: But until 2038, maybe there will be a new format for the .pyc file. We should keep this issue and try to fix it for 3.8 or 3.9? -- ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: With 3.8a Traceback (most recent call last): File "/home/stephane/src/github.com/python/cpython/Lib/runpy.py", line 192, in _run_module_as_main return _run_code(code, main_globals, None, File

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann : To reproduce: touch -d 2038-01-20 /usr/lib/python3.6/site-packages/six.py python3 /usr/lib64/python3.6/compileall.py File "/usr/lib64/python3.6/compileall.py", line 198, in compile_path legacy=legacy, optimize=optimize) File