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.

Author eric.fahlgren
Recipients Barun Parruck, eric.fahlgren, llllllllll
Date 2016-02-27.04:34:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456547650.7.0.389919617824.issue26448@psf.upfronthosting.co.za>
In-reply-to
Content
Well, now that I'm thinking about it, you could synthesize a bytecode stream trivially and have a much better test.  This is completely off the top of my head, so take it is guaranteed to (probably) not work as written, but it should get you started:

from opcodes import *
import dis
bytecode = (
    chr(EXTENDED_ARG) + chr(1) + chr(0) + 
    chr(JUMP_IF_TRUE_OR_POP) + chr(0) + chr(0)
)
print(dis.findlabels(bytecode))
History
Date User Action Args
2016-02-27 04:34:10eric.fahlgrensetrecipients: + eric.fahlgren, llllllllll, Barun Parruck
2016-02-27 04:34:10eric.fahlgrensetmessageid: <1456547650.7.0.389919617824.issue26448@psf.upfronthosting.co.za>
2016-02-27 04:34:10eric.fahlgrenlinkissue26448 messages
2016-02-27 04:34:10eric.fahlgrencreate