Message315786
In 3.7 the stack effect is calculated more accurately by the compiler. PR 6610 exposes this feature to users. It add jump parameter to dis.stack_effect() and to PyCompile_OpcodeStackEffect(). By default the maximal value is returned. Passing jump=True for a non-jumping code or passing jump=False to RETURN_VALUE or JUMP_ABSOLUTE don't raise an exception and don't return a special value. It is up to the caller to pass reliable arguments.
This will make the workaround for stack_effect() in the bytecode project [1] not needed in 3.8.
[1] https://github.com/vstinner/bytecode/pull/29 |
|
Date |
User |
Action |
Args |
2018-04-26 11:45:49 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan, vstinner, larry, benjamin.peterson, eric.snow |
2018-04-26 11:45:49 | serhiy.storchaka | set | messageid: <1524743149.88.0.682650639539.issue32455@psf.upfronthosting.co.za> |
2018-04-26 11:45:49 | serhiy.storchaka | link | issue32455 messages |
2018-04-26 11:45:49 | serhiy.storchaka | create | |
|