Skip to content
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

py_get_attr(silent=TRUE): don't leave global python exception set if attr missing #1396

Merged
merged 7 commits into from Jul 18, 2023

Conversation

t-kalinowski
Copy link
Member

While tracking down a different bug I discovered that reticulate will not work w/ a debug build of Python. This appears to mostly be due to some locations where we silently cause the python global error status to be set in C and then don't clear the error status (e.g., py_get_attr_impl(,silent=TRUE)). Debug assertions in the python codebase subsequently promote the error status to a bona-fide python exception.

@t-kalinowski t-kalinowski marked this pull request as ready for review July 18, 2023 12:37
@t-kalinowski t-kalinowski changed the title Fixes: debug build of python py_get_attr: don't leave global python exception set if attr missing Jul 18, 2023
@t-kalinowski t-kalinowski changed the title py_get_attr: don't leave global python exception set if attr missing py_get_attr(silent=TRUE): don't leave global python exception set if attr missing Jul 18, 2023
@t-kalinowski t-kalinowski merged commit 6d93f3f into main Jul 18, 2023
12 checks passed
@t-kalinowski t-kalinowski deleted the fix/python-debug-build branch July 18, 2023 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant