gh-108308: Replace PyDict_GetItem() with PyDict_GetItemRef()#108309
Conversation
6a032b0 to
85e51b1
Compare
August 22, 2023 15:40
85e51b1 to
ce6ea31
Compare
August 22, 2023 15:41
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
I actually tried to make the compiler code clearer. But it requires so much work that I keep putting it off after another attempt.
Sorry, something went wrong.
Replace PyDict_GetItem() calls with PyDict_GetItemRef() to handle errors. pycore_init_builtins() now checks for _PyType_Lookup() failure.
ce6ea31 to
5c77056
Compare
August 22, 2023 18:47
|
@serhiy-storchaka: I addressed your review. Would you mind to review the updated PR? |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
|
There's a new commit after the PR has been approved. @serhiy-storchaka: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Well, writing correct code requires to write more code. IMO it's worth it :-) |
Sorry, something went wrong.
|
Merged, thanks for the review Serhiy! |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 RHEL8 3.x has failed when building commit f5559f3. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/185/builds/4792 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then ENV CHANGED == 432 tests OK. 10 slowest tests:
1 test altered the execution environment: 14 tests skipped: 1 re-run test: Total duration: 7 min 45 sec Click to see traceback logsTraceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/unittest/async_case.py", line 90, in _callTestMethod
if self._callMaybeAsync(method) is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/unittest/async_case.py", line 117, in _callMaybeAsync
return self._asyncioTestContext.run(func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/test/support/hashlib_helper.py", line 49, in wrapper
return func_or_class(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/test/test_asyncio/test_unix_events.py", line 1937, in test_fork_signal_handling
self.assertTrue(child_handled.is_set())
AssertionError: False is not true
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot wasm32-emscripten node (pthreads) 3.x has failed when building commit f5559f3. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/1050/builds/2826 Summary of the results of the build (if available): == Tests result: ENV CHANGED == 329 tests OK. 10 slowest tests:
1 test altered the execution environment: 117 tests skipped: Total duration: 21 min 36 sec Click to see traceback logsTraceback (most recent call last):
File "/opt/buildbot/bcannon-wasm/3.x.bcannon-wasm.emscripten-node-pthreads/build/Lib/test/test_capi/test_watchers.py", line 532, in watcher
raise MyError("testing 123")
|
Sorry, something went wrong.
I created #108373 to track this unrelated bug. |
Sorry, something went wrong.
Replace PyDict_GetItem() calls with PyDict_GetItemRef() to handle errors.