[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, I think when you debug CPython the biggest hurdle is not to lookup the signification of opcodes :-) Thanks, closing. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-19 Thread Dave Malcolm
Dave Malcolm added the comment: > Are you doing anything specific which requires this change? No. I was looking for ways of making CPython easier to debug, and I experimented with this. It didn't help with debuggability as much as I hoped. Given that CPython's performance is known to be sen

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The assembler diff shows that at one point the compiler produced slightly less good code after the change. I don't know what the impact is in terms of performance but it shows we should be cautious with this change. Are you doing anything specific which require

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file15602/diff-in-generated-assembler-for-ceval.diff ___ Python tracker ___ ___ P

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
Dave Malcolm added the comment: Ooops, sorry; in an earlier version of this work, I was generating an enum of the form: enum { }; i.e. without an identifier (an anonymous enum) which I later changed to: enum Py_Opcode { }; Mea culpa; I forgot to update the text for this bug when I ma

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: What do you mean with "anonymous enum"? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-lis

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file15601/use-opcode-enum.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
Changes by Dave Malcolm : -- keywords: +patch Added file: http://bugs.python.org/file15600/opcode.h.patch ___ Python tracker ___ ___ Py

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file15599/opcode.h ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file15598/fixup-opcode-header.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue7543] RFE: introduce "enum Py_Opcode"

2009-12-18 Thread Dave Malcolm
New submission from Dave Malcolm : Currently, Python's opcodes are defined as preprocessor #defines. This means that they are invisible to the debugger. I'm attaching: (i) a simple script (fixup-opcode-header.py) which converts Include/opcode.h to use an anonymous enum for the values (i