visit_reachable: replace release-mode test with an assert. (GH-16866)
It should be impossible for an untracked object to have the collecting flag set. Back when state was stored in gc_refs, it obviously was impossible (gc_refs couldn't possibly have a positive & negative value simultaneously). While the _implementation_ of "state" has gotten much more complicated, it's still _logically_ just as impossible.
T
Tim Peters committed
1e73945470644202262e1ddee2b49e2708a29794
Parent: 5bc6a7c
Committed by GitHub <noreply@github.com>
on 10/21/2019, 4:21:35 PM