3 ms·
Why would reference counting be necessary an immutable, immortal global?
by saagarjha 6y ago
Why would reference counting be necessary an immutable, immortal global?
- Pxtl 6y agoIt isn't, but IIRC refcounting is cooked into the python interpreter in so many places that everything that can be referenced must also be refcounted. If you get a reference to something, you increment its refcount. If you lose the reference, you decrement it. No ifs, no branches.