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
Replace PyDict_GetItem() with PyDict_GetItemWithError() #64814
Comments
See this huge warning in the definition of PyDict_GetItem: /* Note that, for historical reasons, PyDict_GetItem() suppresses all errors
PyDict_GetItem() should avoided because it may hide important exceptions like KeyboardInterrupt or MemoryError. See for example bpo-14537 for a specific error. By the way, the PyDict_GetItem() documentation should contain a big red warning and suggest to use PyDict_GetItemWithError() instead. |
Please, no more big red warnings. Keep the docs factual and straight-forward. In the docs for PyDict_GetItem(), note that errors will get suppressed. To |
Sorry, I lost track of this issue, so I just close it. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: