-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compiler. #5071
Conversation
…nally blocks. Potential bug pointed out by Neil Schemenauer.
… for correct compiliation of with statement.
…ode as it is now fully synonymous with SETUP_EXCEPT.
…ocks. Fixes bpo-24340.
bb69075
to
400d574
Compare
It looks like the build core dumped on Travis-CI. There's also a build issue on AppVeyor (perhaps related to |
The build error can be fixed by moving wordcode_helpers.h into Include. Then change "Python/wordcode_helpers.h" in frameobject.c to "wordcode_helpers.h". The current code doesn't compile if your build directory is not in the top-level source directory. The following code causes a weird error in traceback.py:
|
See bpo-17611 for detailed discussion.
This PR:
PyTryBlock
reducing the size of a frame by 80 bytes.This PR is not yet ready for merging as it does not include a misc.news entry, updates to Docs/library/dis.rst and the
dis
module tests fail.If it is agreed that this is to be merged, then I will fill in the missing parts.
There are also a couple of further improvements that I would like to make, but have intentionally omitted. I intend to add them in separate PRs:
LOAD_ADDR
withLOAD_CONST
in the peephole optimiser.https://bugs.python.org/issue17611