[Python-Dev] Python CFG Basic blocks

2016-07-11 Thread Obiesie ike-nwosu via Python-Dev
Hi, I am looking into how the python compiler generates basic blocks during the CFG generation process and my expectations from CFG theory seems to be at odds with how the python compiler actually generates its CFG. Take the following code snippet for example: def median(pool): copy = sort

Re: [Python-Dev] JUMP_ABSOLUTE in nested if statements

2016-06-18 Thread Obiesie ike-nwosu via Python-Dev
, 2016, at 2:04 PM, Obiesie ike-nwosu via Python-Dev >> wrote: >> >> Hi, >> >> Could some one give a hand with explaining to me why we have a JUMP_ABSOLUTE >> followed by a JUMP_FORWARD op code when this function is disassembled. >> < snipped> >>

[Python-Dev] JUMP_ABSOLUTE in nested if statements

2016-06-18 Thread Obiesie ike-nwosu via Python-Dev
Hi, Could some one give a hand with explaining to me why we have a JUMP_ABSOLUTE followed by a JUMP_FORWARD op code when this function is disassembled. >>> def f1(): ... a, b = 10, 11 ... if a >= 10: ... if b >= 11: ... print("hello world") … The disass