Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to