Bug report
Bug description:
The problem with the above pattern is that obj has three states in terms of nullness, NULL/not-NULL/UKNOWN, so !not-null = UKNOWN/NULL which is not what the optimization is usually expecting (the unknown part).
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
The problem with the above pattern is that
objhas three states in terms of nullness, NULL/not-NULL/UKNOWN, so !not-null = UKNOWN/NULL which is not what the optimization is usually expecting (the unknown part).CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs