◐ Shell
clean mode source ↗

gh-109802: removed inaccessible code from complexobject.c by skirpichev · Pull Request #109642 · python/cpython

The PR increases test coverage in two ways:: adding tests and removing some code paths that cannot be reached. The added tests are quite safe to add. The changes to the C code are a bit hard to comprehend, but I checked them and seem valid to me. Also they are guarded by asserts.

Only one comment on a docstring, but otherwise looks good.