Thomas Wouters added the comment: Here's a minimal patch to at least make the current mechanism work when using a separate build directory.
I still don't like the fact that this is importing opcode.py in a different Python than the target Python. Nor do I like that the script hardcodes information about the opcodes (specifically, the first opcode to HAVE_ARGUMENT.) This feels like it's not actually better for maintenance than the previous solution. ---------- assignee: -> kushal.das resolution: fixed -> status: closed -> open Added file: http://bugs.python.org/file34930/generate_opcode_h.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17861> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com