You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_imp_create_dynamic_impl() does not clear error. #79657
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-07-26.15:36:56.298>created_at=<Date2018-12-12.19:21:19.747>labels= ['interpreter-core', '3.8', 'type-bug', '3.7']
title='_imp_create_dynamic_impl() does not clear error.'updated_at=<Date2019-07-26.15:39:35.142>user='https://github.com/ericsnowcurrently'
In _imp_create_dynamic_impl() [1] the case where _PyImport_FindExtensionObject() returns NULL may leave an error set. Either the error should be raised (like _imp_create_builtin() does) or it should be cleared (via PyErr_Clear()).
Sorry, @batuhan. We appreciate your effort and would be glad to see more contributions from you. I hope you at least learned something positive while working on this. :)
Activity
ericsnowcurrently commentedon Dec 12, 2018
In _imp_create_dynamic_impl() [1] the case where _PyImport_FindExtensionObject() returns NULL may leave an error set. Either the error should be raised (like _imp_create_builtin() does) or it should be cleared (via PyErr_Clear()).
isidentical commentedon Jul 13, 2019
Can you give me the case so i can reproduce this and test it.
brettcannon commentedon Jul 19, 2019
Why would was want to swallow an exception? I think it would be better to let the exception propagate.
ncoghlan commentedon Jul 20, 2019
Agreed, raising the exception properly would be the way to go.
ericsnowcurrently commentedon Jul 26, 2019
Hmm, looks like this was already fixed by Serhiy (for bpo-35454) the day before I opened this issue. :)
3.8/master: #55286 8905fcc
3.7: #55314 62674f3
3.6: #55315 8855d93
That's what I get for not keeping my local clone up-to-date.
ericsnowcurrently commentedon Jul 26, 2019
Sorry, @batuhan. We appreciate your effort and would be glad to see more contributions from you. I hope you at least learned something positive while working on this. :)