[issue34722] Non-deterministic bytecode generation

2018-09-21 Thread Peter Ebden
Change by Peter Ebden : -- keywords: +patch pull_requests: +8885 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34722> ___ ___ Py

[issue34722] Non-deterministic bytecode generation

2018-09-19 Thread Peter Ebden
Peter Ebden added the comment: Thanks for the pointer, I'll have a bit more of a dig into it (although Serhiy makes a good point too...). -- ___ Python tracker <https://bugs.python.org/is

[issue34722] Non-deterministic bytecode generation

2018-09-18 Thread Peter Ebden
New submission from Peter Ebden : We've found that the following code produces non-deterministic bytecode, even post PEP-552: def test(x): if x in {'ONE', 'TWO', 'THREE'}: pass It's not too hard to test it: $ python3.7 -m compileall --

[issue29094] Regression in zipfile writing in 2.7.13

2016-12-28 Thread Peter Ebden
New submission from Peter Ebden: In Python 2.7.13, using zipfile.ZipFile to write into a file with some initial preamble produces a zip file that cannot be read again by some zip implementations. Our use case is using pex (https://github.com/pantsbuild/pex) which writes a zip that begins with