diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-06-01 22:28:31 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-01 22:28:31 (GMT) |
| commit | 146939306adcff706ebddb047f7470d148125cdf (patch) | |
| tree | 7ba1a0832da33fff49813d51dee801e54efd9fce /Include/Python.h | |
| parent | 3698fda06eefb3c01e78c4c07f46fcdd0559e0f6 (diff) | |
| download | cpython-146939306adcff706ebddb047f7470d148125cdf.zip cpython-146939306adcff706ebddb047f7470d148125cdf.tar.gz cpython-146939306adcff706ebddb047f7470d148125cdf.tar.bz2 | |
gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122)
When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types.
We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
Diffstat (limited to 'Include/Python.h')
0 files changed, 0 insertions, 0 deletions
