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 serhiy.storchaka
Recipients benjamin.peterson, eric.snow, larry, ncoghlan, serhiy.storchaka, vstinner
Date 2018-04-26.11:45:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524743149.88.0.682650639539.issue32455@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-04-26 11:45:49serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, vstinner, larry, benjamin.peterson, eric.snow
2018-04-26 11:45:49serhiy.storchakasetmessageid: <1524743149.88.0.682650639539.issue32455@psf.upfronthosting.co.za>
2018-04-26 11:45:49serhiy.storchakalinkissue32455 messages
2018-04-26 11:45:49serhiy.storchakacreate