➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 meador.inge
收信人 alex, belopolsky, jcea, meador.inge, ncoghlan, rfk, rhettinger
日期 2011-09-22.04:02:33
SpamBayes Score 2.28744e-05
Marked as misclassified 否
Message-id <1316664154.47.0.753662819154.issue11816@psf.upfronthosting.co.za>
In-reply-to
内容
I took a quick look over the final patch (I will do a more thorough
review later).  I like the general idea a lot.  The first thing that
popped out at me are the names 'OpInfo' and 'get_opinfo'.

'OpInfo' makes it sound like information concerning only the opcode, but
these objects really represent bytecode instructions.  I see a lot
of code in the future like:

    for opinfo in dis.get_opinfo(thing):
        process(opinfo)

which seems vague.  The following seems clearer to me:

    for instr in dis.bytecode_instructions(thing):
        process(instr)

And instead of 'OpInfo' perhaps 'ByteCodeInstruction'.  Even the current
'dis' documentation uses the terminology "Byte Code Instruction".
历史
日期 用户 动作 参数
2011-09-22 04:02:34meador.inge修改recipients: + meador.inge, rhettinger, jcea, ncoghlan, belopolsky, alex, rfk
2011-09-22 04:02:34meador.inge修改messageid: <1316664154.47.0.753662819154.issue11816@psf.upfronthosting.co.za>
2011-09-22 04:02:33meador.inge链接issue11816 messages
2011-09-22 04:02:33meador.inge创建