[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

Serhiy Storchaka report at bugs.python.org
Wed Jan 3 13:19:40 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

After resolving issue24340 I'm going to add PyCompile_OpcodeStackEffect() that takes an additional integer argument, and add an optional tristate argument to dis.stack_effect(). If it is True, return the effect when jump, if it is false, return the effect when not jump, when omitted or None, return the maximal effect.

----------
dependencies: +co_stacksize estimate can be highly off

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32455>
_______________________________________


More information about the Python-bugs-list mailing list