[issue28821] generate_opcode_h.py crash when run with python2

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Florin Papa added the comment: > I tested and the script is no longer called if you do a "make touch" > beforehand. Oh ok, thanks for the test. It confirms that you don't need to run the script to build Python 3. It's a side effect of the Mercurial clone.

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-29 Thread Florin Papa
Florin Papa added the comment: I tested and the script is no longer called if you do a "make touch" beforehand. -- ___ Python tracker ___

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: > Whenever I did a fresh clone, the Tools/scripts/generate_opcode_h.py would be > called. Can you please test "make touch"? This command "fixes" timestamps. -- ___ Python tracker

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Florin Papa
Florin Papa added the comment: Whenever I did a fresh clone, the Tools/scripts/generate_opcode_h.py would be called. Thank you for fixing this. -- ___ Python tracker ___ __

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: Anyway, I reintroduced the Python 2, just for practical reasons :-) I knew that my change dropped Python 2 support, but I didn't notice that the Makefile might have to run the script to be able to build the ./python binary. So the script can be used on python2

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread STINNER Victor
STINNER Victor added the comment: I don't understand why do you run Tools/scripts/generate_opcode_h.py. It seems like Makefile wants to run it if Lib/opcode.py is more recent than Include/opcode.h. Can you please try the "make touch" command to not recompile Include/opcode.h? Include/opcode.h

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6ea34c8b413 by Victor Stinner in branch 'default': Reintroduce Python2 support in generate_opcode_h.py https://hg.python.org/cpython/rev/a6ea34c8b413 -- nosy: +python-dev ___ Python tracker

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-28 Thread Florin Papa
New submission from Florin Papa: Hello, This is Florin Papa from the Dynamic Scripting Languages Optimizations team in Intel Corporation. In changeset 105360:46e2755b022c [1] the generate_opcode_h.py script was modified to use tokenize.open() in order to avoid a Resource Warning. The tokeniz